module Github::Repos::Watching
def watched(user_name=nil, params={})
@github.repos.watched
@github = Github.new :oauth_token => '...'
= Examples
List repos being watched by the authenticated user
@github.repos.watched
@github = Github.new :user => 'user-name'
= Examples
List repos being watched by a user
def watched(user_name=nil, params={}) _update_user_repo_params(user_name) _normalize_params_keys(params) response = if user get("/users/#{user}/watched") else get("/user/watched") end return response unless block_given? response.each { |el| yield el } end