Class: Sparrowhawk::BundlerGemFinder

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/sparrowhawk/bundler_gem_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition) ⇒ BundlerGemFinder

Returns a new instance of BundlerGemFinder.



8
9
10
# File 'lib/sparrowhawk/bundler_gem_finder.rb', line 8

def initialize definition
  @definition = definition 
end

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition.



6
7
8
# File 'lib/sparrowhawk/bundler_gem_finder.rb', line 6

def definition
  @definition
end

Instance Method Details

#eachObject



12
13
14
# File 'lib/sparrowhawk/bundler_gem_finder.rb', line 12

def each
  gems.each { |g| yield g }
end