In Files

  • rubygems/stub_specification.rb

Class/Module Index [+]

Quicksearch

Gem::StubSpecification::StubLine

Attributes

parts[R]

Public Class Methods

new(data) click to toggle source
 
               # File rubygems/stub_specification.rb, line 20
def initialize(data)
  @parts = data[PREFIX.length..-1].split(" ")
end
            

Public Instance Methods

name() click to toggle source
 
               # File rubygems/stub_specification.rb, line 24
def name
  @parts[0]
end
            
platform() click to toggle source
 
               # File rubygems/stub_specification.rb, line 32
def platform
  Gem::Platform.new @parts[2]
end
            
require_paths() click to toggle source
 
               # File rubygems/stub_specification.rb, line 36
def require_paths
  @parts[3..-1].join(" ").split("\00"")
end
            
version() click to toggle source
 
               # File rubygems/stub_specification.rb, line 28
def version
  Gem::Version.new @parts[1]
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.

blog comments powered by Disqus