module Github::Repos::Watching

def watched(*args)


@github.repos.watched
@github = Github.new :oauth_token => '...'
= Examples

List repos being watched by the authenticated user

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

List repos being watched by a user
def watched(*args)
  params = args.last.is_a?(Hash) ? args.pop : {}
  _normalize_params_keys(params)
  _merge_user_into_params!(params) unless params.has_key?('user')
  response = if (user_name = params.delete('user'))
    get("/users/#{user_name}/watched", params)
  else
    get("/user/watched", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end