Class: WhatTheGem::Gem::GitHub
Defined Under Namespace
Classes: Path
Constant Summary collapse
- CHANGELOG_PATTERN =
/^(history|changelog|changes)(\.\w+)?$/i
Instance Attribute Summary collapse
-
#repo_id ⇒ Object
readonly
Returns the value of attribute repo_id.
Instance Method Summary collapse
- #contents(path = '.') ⇒ Object (also: #files)
-
#initialize(repo_id) ⇒ GitHub
constructor
A new instance of GitHub.
Constructor Details
#initialize(repo_id) ⇒ GitHub
19 20 21 |
# File 'lib/whatthegem/gem/github.rb', line 19 def initialize(repo_id) @repo_id = repo_id end |
Instance Attribute Details
#repo_id ⇒ Object (readonly)
Returns the value of attribute repo_id.
17 18 19 |
# File 'lib/whatthegem/gem/github.rb', line 17 def repo_id @repo_id end |
Instance Method Details
#contents(path = '.') ⇒ Object Also known as: files
45 46 47 |
# File 'lib/whatthegem/gem/github.rb', line 45 def contents(path = '.') req(:contents, path: path) end |