Class: Bundler::LockfileGenerator
- Inherits:
-
Object
- Object
- Bundler::LockfileGenerator
- Defined in:
- lib/bundler/lockfile_generator.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Class Method Summary collapse
Instance Method Summary collapse
- #generate! ⇒ Object
-
#initialize(definition) ⇒ LockfileGenerator
constructor
A new instance of LockfileGenerator.
Constructor Details
#initialize(definition) ⇒ LockfileGenerator
Returns a new instance of LockfileGenerator.
9 10 11 12 |
# File 'lib/bundler/lockfile_generator.rb', line 9 def initialize(definition) @definition = definition @out = String.new end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
5 6 7 |
# File 'lib/bundler/lockfile_generator.rb', line 5 def definition @definition end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
6 7 8 |
# File 'lib/bundler/lockfile_generator.rb', line 6 def out @out end |
Class Method Details
.generate(definition) ⇒ Object
14 15 16 |
# File 'lib/bundler/lockfile_generator.rb', line 14 def self.generate(definition) new(definition).generate! end |
Instance Method Details
#generate! ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/bundler/lockfile_generator.rb', line 18 def generate! add_sources add_platforms add_dependencies add_locked_ruby_version add_bundled_with out end |