Permalink
Browse files

docs in comments

  • Loading branch information...
1 parent 2835008 commit dd6f0c96c9589301a4a2fe644bf4fcaf73e6158d @ConradIrwin committed May 23, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/gist.rb
View
@@ -137,8 +137,11 @@ def shorten(url)
# and OAuth2 access token, which is then stored in ~/.gist
#
# @raise [Gist::Error] if something went wrong
+ # @param [Hash] credentials login details
+ # @option credentials [String] :username
+ # @option credentials [String] :password
# @see http://developer.github.com/v3/oauth/
- def login! credentials={}
+ def login!(credentials={})
puts "Obtaining OAuth2 access_token from github."
print "GitHub username: "
username = credentials[:username] || $stdin.gets.strip

0 comments on commit dd6f0c9

Please sign in to comment.