Class: Bundler::StubSpecification

Inherits:
RemoteSpecification show all
Defined in:
lib/bundler/stub_specification.rb

Constant Summary

Constants included from GemHelpers

GemHelpers::GENERICS, GemHelpers::GENERIC_CACHE

Instance Attribute Summary collapse

Attributes inherited from RemoteSpecification

#name, #platform, #remote, #source, #version

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RemoteSpecification

#<=>, #__swap__, #fetch_platform, #full_name, #initialize, #sort_obj

Methods included from MatchPlatform

#match_platform

Methods included from GemHelpers

#generic

Constructor Details

This class inherits a constructor from Bundler::RemoteSpecification

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bundler::RemoteSpecification

Instance Attribute Details

#stubObject

Returns the value of attribute stub.



11
12
13
# File 'lib/bundler/stub_specification.rb', line 11

def stub
  @stub
end

Class Method Details

.from_stub(stub) ⇒ Object



5
6
7
8
9
# 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

Instance Method Details

#to_yamlObject



13
14
15
# File 'lib/bundler/stub_specification.rb', line 13

def to_yaml
  _remote_specification.to_yaml
end