Class: Terret::Composition::Bundle
- Inherits:
-
Data
- Object
- Data
- Terret::Composition::Bundle
- Defined in:
- lib/terret/composition.rb
Overview
A gem's config/bundle.yml, parsed. requires is this implementation's
answer to §2's "it has to make that code available": Bundler puts the
dependency on the load path, and these are the files that pull it in
before a row's constant has to resolve.
error is set instead of raising when discovery cannot parse the file:
one third-party gem shipping a broken bundle must not break every profile
on the machine, only the profiles that name it.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#gem_name ⇒ Object
readonly
Returns the value of attribute gem_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#requires ⇒ Object
readonly
Returns the value of attribute requires.
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Class Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
89 90 91 |
# File 'lib/terret/composition.rb', line 89 def error @error end |
#gem_name ⇒ Object (readonly)
Returns the value of attribute gem_name
89 90 91 |
# File 'lib/terret/composition.rb', line 89 def gem_name @gem_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name
89 90 91 |
# File 'lib/terret/composition.rb', line 89 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path
89 90 91 |
# File 'lib/terret/composition.rb', line 89 def path @path end |
#requires ⇒ Object (readonly)
Returns the value of attribute requires
89 90 91 |
# File 'lib/terret/composition.rb', line 89 def requires @requires end |
#rows ⇒ Object (readonly)
Returns the value of attribute rows
89 90 91 |
# File 'lib/terret/composition.rb', line 89 def rows @rows end |
Class Method Details
.broken(gem_name:, path:, error:) ⇒ Object
90 91 92 |
# File 'lib/terret/composition.rb', line 90 def self.broken(gem_name:, path:, error:) new(name: gem_name, gem_name: gem_name, path: path, requires: [], rows: [], error: error) end |