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



62
63
64
# File 'lib/build/dependency/provider.rb', line 62

def dependency
  @dependency
end

#provisionObject

Returns the value of attribute provision

Returns:

  • (Object)

    the current value of provision



62
63
64
# File 'lib/build/dependency/provider.rb', line 62

def provision
  @provision
end

Instance Method Details

#nameObject



63
64
65
# File 'lib/build/dependency/provider.rb', line 63

def name
	dependency.name
end

#providerObject



67
68
69
# File 'lib/build/dependency/provider.rb', line 67

def provider
	provision.provider
end

#to_sObject



71
72
73
# File 'lib/build/dependency/provider.rb', line 71

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