class Github::Repos::Contents

def get(user_name, repo_name, path, params={})


github.repos.contents.get 'user-name', 'repo-name', 'path'
github = Github.new
= Examples

This method returns the contents of any file or directory in a repository.

Get contents
def get(user_name, repo_name, path, params={})
  normalize! params
  get_request("/repos/#{user_name}/#{repo_name}/contents/#{path}", params)
end