Class: Artifactory::GemImport::GemSpecs::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/artifactory/gem_import/gem_specs/parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Parser

Returns a new instance of Parser.



12
13
14
# File 'lib/artifactory/gem_import/gem_specs/parser.rb', line 12

def initialize(data)
  @io = StringIO.new data
end

Class Method Details

.call(data) ⇒ Object



8
9
10
# File 'lib/artifactory/gem_import/gem_specs/parser.rb', line 8

def self.call(data)
  new(data).call
end

Instance Method Details

#callObject



16
17
18
# File 'lib/artifactory/gem_import/gem_specs/parser.rb', line 16

def call
  Marshal.load inflated_data
end