Class: Degem::UnusedGem
- Inherits:
-
MultiDelegator
- Object
- MultiDelegator
- Degem::UnusedGem
- Defined in:
- lib/degem/unused_gem.rb
Instance Attribute Summary collapse
-
#commits ⇒ Object
readonly
Returns the value of attribute commits.
Instance Method Summary collapse
-
#initialize(_, _, commits) ⇒ UnusedGem
constructor
A new instance of UnusedGem.
- #source_code_uri ⇒ Object
Methods inherited from MultiDelegator
#method_missing, #respond_to_missing?
Constructor Details
#initialize(_, _, commits) ⇒ UnusedGem
7 8 9 10 |
# File 'lib/degem/unused_gem.rb', line 7 def initialize(_, _, commits) super @commits = commits end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Degem::MultiDelegator
Instance Attribute Details
#commits ⇒ Object (readonly)
Returns the value of attribute commits.
5 6 7 |
# File 'lib/degem/unused_gem.rb', line 5 def commits @commits end |
Instance Method Details
#source_code_uri ⇒ Object
12 13 14 |
# File 'lib/degem/unused_gem.rb', line 12 def source_code_uri ["source_code_uri"] || homepage end |