Class: Gem::StubSpecification::StubLine
- Inherits:
-
Object
- Object
- Gem::StubSpecification::StubLine
- Defined in:
- lib/rubygems/stub_specification.rb
Overview
:nodoc: all
Instance Attribute Summary collapse
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(data) ⇒ StubLine
constructor
A new instance of StubLine.
- #name ⇒ Object
- #platform ⇒ Object
- #require_paths ⇒ Object
- #version ⇒ Object
Constructor Details
Instance Attribute Details
#parts ⇒ Object (readonly)
Returns the value of attribute parts
18 19 20 |
# File 'lib/rubygems/stub_specification.rb', line 18 def parts @parts end |
Instance Method Details
#name ⇒ Object
24 25 26 |
# File 'lib/rubygems/stub_specification.rb', line 24 def name @parts[0] end |
#platform ⇒ Object
32 33 34 |
# File 'lib/rubygems/stub_specification.rb', line 32 def platform Gem::Platform.new @parts[2] end |
#require_paths ⇒ Object
36 37 38 |
# File 'lib/rubygems/stub_specification.rb', line 36 def require_paths @parts[3..-1].join(" ").split("\0") end |