Class: Build::Dependency::Provision
- Inherits:
-
Struct
- Object
- Struct
- Build::Dependency::Provision
- Defined in:
- lib/build/dependency/provider.rb
Overview
A provision is a thing which satisfies a dependency.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
30 31 32 |
# File 'lib/build/dependency/provider.rb', line 30 def name @name end |
#provider ⇒ Object
Returns the value of attribute provider
30 31 32 |
# File 'lib/build/dependency/provider.rb', line 30 def provider @provider end |
#value ⇒ Object
Returns the value of attribute value
30 31 32 |
# File 'lib/build/dependency/provider.rb', line 30 def value @value end |
Instance Method Details
#alias? ⇒ Boolean
35 36 37 |
# File 'lib/build/dependency/provider.rb', line 35 def alias? false end |
#each_dependency(&block) ⇒ Object
31 32 33 |
# File 'lib/build/dependency/provider.rb', line 31 def each_dependency(&block) self.provider.dependencies.each(&block) end |
#to_s ⇒ Object
39 40 41 |
# File 'lib/build/dependency/provider.rb', line 39 def to_s "provides #{name.inspect}" end |