Class: Sparrowhawk::BundlerArtifactMapper

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (BundlerArtifactMapper) initialize

A new instance of BundlerArtifactMapper



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

def initialize
  @definition = BundlerDefinition.new gemfile, lockfile
end

Instance Attribute Details

- (Object) definition (readonly)

Returns the value of attribute definition



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

def definition
  @definition
end

Instance Method Details

- (Object) each



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

def each
  entries.each { |entry| yield entry }
end