Class: Bundler::StubSpecification
- Inherits:
-
RemoteSpecification
- Object
- RemoteSpecification
- Bundler::StubSpecification
- Defined in:
- lib/bundler/stub_specification.rb
Constant Summary
Constants included from GemHelpers
GemHelpers::GENERICS, GemHelpers::GENERIC_CACHE
Instance Attribute Summary collapse
-
#stub ⇒ Object
Returns the value of attribute stub.
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
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
#stub ⇒ Object
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_yaml ⇒ Object
14 15 16 |
# File 'lib/bundler/stub_specification.rb', line 14 def to_yaml _remote_specification.to_yaml end |