Class: ParseGemspec::Specification
- Inherits:
-
Object
- Object
- ParseGemspec::Specification
- Extended by:
- Forwardable
- Defined in:
- lib/parse_gemspec/specification.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(spec) ⇒ Specification
constructor
A new instance of Specification.
-
#to_hash_object(format: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Constructor Details
#initialize(spec) ⇒ Specification
Returns a new instance of Specification.
11 12 13 |
# File 'lib/parse_gemspec/specification.rb', line 11 def initialize(spec) @spec = spec end |
Class Method Details
.load(*args) ⇒ Object
6 7 8 9 |
# File 'lib/parse_gemspec/specification.rb', line 6 def self.load(*args) spec = Gem::Specification.load(*args) new(spec) end |
Instance Method Details
#to_hash_object(format: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
15 16 17 18 19 20 21 |
# File 'lib/parse_gemspec/specification.rb', line 15 def to_hash_object(format: {}) # rubocop:disable Lint/UnusedMethodArgument { name: name, version: version.version, homepage: homepage } end |