Class: Degem::UnusedGem

Inherits:
MultiDelegator show all
Defined in:
lib/degem/unused_gem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commitsObject (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_uriObject



12
13
14
# File 'lib/degem/unused_gem.rb', line 12

def source_code_uri
  ["source_code_uri"] || homepage
end