Class: Build::Dependency::Resolution

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dependencyObject

Returns the value of attribute dependency

Returns:

  • (Object)

    the current value of dependency



50
51
52
# File 'lib/build/dependency/provider.rb', line 50

def dependency
  @dependency
end

#provisionObject

Returns the value of attribute provision

Returns:

  • (Object)

    the current value of provision



50
51
52
# File 'lib/build/dependency/provider.rb', line 50

def provision
  @provision
end

Instance Method Details

#nameObject



51
52
53
# File 'lib/build/dependency/provider.rb', line 51

def name
	dependency.name
end

#providerObject



55
56
57
# File 'lib/build/dependency/provider.rb', line 55

def provider
	provision.provider
end

#to_sObject



59
60
61
# File 'lib/build/dependency/provider.rb', line 59

def to_s
	"resolution #{provider.name.inspect} -> #{dependency.name.inspect}"
end