Build::DependencySourceBuildDependency

module Dependency

Nested

Definitions

def self.included(klass)

Include the Provider module when Build::Dependency is included in a class.

Signature

parameter klass Class

The class that is including Build::Dependency.

Implementation

def self.included(klass)
	klass.include(Provider)
end

Provision

A provision is a thing which satisfies a dependency.

Implementation

Provision = Struct.new(:name, :provider, :value) do
	def each_dependency(&block)
		self.provider.dependencies.each(&block)
	end
	
	def alias?
		false
	end
	
	def to_s
		"provides #{name.inspect}"
	end
end