Class: Avm::Ruby::Bundler::IncompatibleParser

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/ruby/bundler/incompatible_parser.rb,
lib/avm/ruby/bundler/incompatible_parser/depends_on.rb,
lib/avm/ruby/bundler/incompatible_parser/in_gemfile.rb,
lib/avm/ruby/bundler/incompatible_parser/line_buffer.rb,
lib/avm/ruby/bundler/incompatible_parser/gem_conflict.rb,
lib/avm/ruby/bundler/incompatible_parser/line_factory.rb,
lib/avm/ruby/bundler/incompatible_parser/line_parser_base.rb,
lib/avm/ruby/bundler/incompatible_parser/version_requirement.rb

Defined Under Namespace

Classes: DependsOn, GemConflict, InGemfile, LineBuffer, LineFactory, LineParserBase, VersionRequirement

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ IncompatibleParser

Returns a new instance of IncompatibleParser.



14
15
16
17
# File 'lib/avm/ruby/bundler/incompatible_parser.rb', line 14

def initialize(path)
  @gems_in_conflict = ::Avm::Ruby::Bundler::IncompatibleParser::LineBuffer
                      .from_file(path).gems_in_conflict.freeze
end

Instance Attribute Details

#gems_in_conflictObject (readonly)

Returns the value of attribute gems_in_conflict.



12
13
14
# File 'lib/avm/ruby/bundler/incompatible_parser.rb', line 12

def gems_in_conflict
  @gems_in_conflict
end

Instance Method Details

#dataObject



19
20
21
# File 'lib/avm/ruby/bundler/incompatible_parser.rb', line 19

def data
  gems_in_conflict.map(&:data)
end