class Github::Gitignore

.gitignore template to apply to the repository upon creation.
When you create a new GitHub repository via the API, you can specify a

def get(*args)


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(*args)
  params = arguments(args, :required => [:name]).params
  if (mime_type = params.delete('mime'))
    options = { :raw => true, :headers => {'Accept' => mime_type} }
  end
  get_request("/gitignore/templates/#{name}", params, options || {})
end

def list(*args)


github.gitignore.list { |template| ... }
github.gitignore.list
github = Github.new
= Examples

List all templates available to pass as an option when creating a repository.
def list(*args)
  arguments(args)
  response = get_request("/gitignore/templates", arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end