class Github::Gists

def gists(user_name=nil, params={})


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

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

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

List a user's gists.
def gists(user_name=nil, params={})
  _update_user_repo_params(user_name)
  _normalize_params_keys(params)
  response = if user
    get("/users/#{user}/gists", params)
  elsif oauth_token
    get("/gists", params)
  else
    get("/gists/public", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end