class Github::Gists

def list(params={})


github.gists.list
github = Github.new :oauth_token => '...'
= Examples

this will returns all public gists
List the authenticated user’s gists or if called anonymously,

github.gists.list user: 'user-name'
github = Github.new
= Examples

List a user's gists.
def list(params={})
  normalize! params
  user = params.delete('user')
  response = if user
    get_request("/users/#{user}/gists", params)
  elsif oauth_token
    get_request("/gists", params)
  else
    get_request("/gists/public", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end