Class: Artifactory::GemImport::GemSpecs::Parser
- Inherits:
-
Object
- Object
- Artifactory::GemImport::GemSpecs::Parser
- Defined in:
- lib/artifactory/gem_import/gem_specs/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(data) ⇒ Parser
constructor
A new instance of Parser.
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
#call ⇒ Object
16 17 18 |
# File 'lib/artifactory/gem_import/gem_specs/parser.rb', line 16 def call Marshal.load inflated_data end |