class Github::Gitignore

def get(name, params={})


github.gitignore.get "template-name", mime: 'applicatin/vnd.github.raw'
github = Github.new
= Examples

Use the raw media type to get the raw contents.

github.gitignore.get "template-name"
github = Github.new
= Examples

Get a single template
def get(name, params={})
  normalize! params
  assert_presence_of name
  if (mime_type = params.delete('mime'))
    options = { :raw => true, :headers => {'Accept' => mime_type} }
  end
  get_request("/gitignore/templates/#{name}", params, options || {})
end