Class: Avm::EacRubyBase1::Bundler::IncompatibleParser::LineBuffer
- Inherits:
-
Object
- Object
- Avm::EacRubyBase1::Bundler::IncompatibleParser::LineBuffer
- Defined in:
- lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb
Instance Attribute Summary collapse
-
#gems_in_conflict ⇒ Object
readonly
Returns the value of attribute gems_in_conflict.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content) ⇒ LineBuffer
constructor
A new instance of LineBuffer.
Constructor Details
#initialize(content) ⇒ LineBuffer
Returns a new instance of LineBuffer.
16 17 18 19 20 |
# File 'lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb', line 16 def initialize(content) self.gems_in_conflict = [] self.parsing_required = false content.each_line { |string_line| add_line(LineFactory.new(string_line)) } end |
Instance Attribute Details
#gems_in_conflict ⇒ Object
Returns the value of attribute gems_in_conflict.
14 15 16 |
# File 'lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb', line 14 def gems_in_conflict @gems_in_conflict end |
Class Method Details
.from_file(path) ⇒ Object
9 10 11 |
# File 'lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb', line 9 def from_file(path) new(::File.read(path.to_s)) end |