# File lib/pry/commands/gist.rb, line 84 def gist_content(content, filename) response = ::Gist.gist(content, :filename => filename || "pry_gist.rb", :public => !!opts[:p]) if response url = response['html_url'] message = "Gist created at URL #{url}" begin ::Gist.copy(url) message << ", which is now in the clipboard." rescue ::Gist::ClipboardError end output.puts message end end