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, generic_local_platform

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.



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

def stub
  @stub
end

Class Method Details

.from_stub(stub) ⇒ Object



6
7
8
9
10
# File 'lib/bundler/stub_specification.rb', line 6

def self.from_stub(stub)
  spec = new(stub.name, stub.version, stub.platform, nil)
  spec.stub = stub
  spec
end

Instance Method Details

#to_yamlObject



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

def to_yaml
  _remote_specification.to_yaml
end