Module: GitHub::Client::Gitignore
- Included in:
- GitHub::Client
- Defined in:
- lib/github_api_v3/client/gitignore.rb
Overview
Contains methods for the Gitignore API.
Instance Method Summary collapse
-
#gitignore(name) ⇒ String
Gets a single .gitignore template.
-
#gitignore_list ⇒ Array
Lists available .gitignore templates.
Instance Method Details
#gitignore(name) ⇒ String
Gets a single .gitignore template.
26 27 28 |
# File 'lib/github_api_v3/client/gitignore.rb', line 26 def gitignore(name) get "/gitignore/templates/#{name}" end |
#gitignore_list ⇒ Array
Lists available .gitignore templates.
15 16 17 |
# File 'lib/github_api_v3/client/gitignore.rb', line 15 def gitignore_list get '/gitignore/templates' end |