class Bundler::StubSpecification

Attributes

stub[RW]

Public Class Methods

from_stub(stub) click to toggle source
# File lib/bundler/stub_specification.rb, line 5
def self.from_stub(stub)
  spec = new(stub.name, stub.version, stub.platform, nil)
  spec.stub = stub
  spec
end

Public Instance Methods

to_yaml() click to toggle source
# File lib/bundler/stub_specification.rb, line 13
def to_yaml
  _remote_specification.to_yaml
end

Private Instance Methods

_remote_specification() click to toggle source
# File lib/bundler/stub_specification.rb, line 19
def _remote_specification
  stub.to_spec
end