Class: Build::Dependency::Provision

Inherits:
Struct
  • Object
show all
Defined in:
lib/build/dependency/provider.rb

Overview

A provision is a thing which satisfies a dependency.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name



30
31
32
# File 'lib/build/dependency/provider.rb', line 30

def name
  @name
end

#providerObject

Returns the value of attribute provider



30
31
32
# File 'lib/build/dependency/provider.rb', line 30

def provider
  @provider
end

#valueObject

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_sObject



39
40
41
# File 'lib/build/dependency/provider.rb', line 39

def to_s
  "provides #{name.inspect}"
end