Class: Build::Dependency::Alias

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dependenciesObject

Returns the value of attribute dependencies

Returns:

  • (Object)

    the current value of dependencies



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

def dependencies
  @dependencies
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



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

def provider
  @provider
end

Instance Method Details

#alias?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/build/dependency/provider.rb', line 41

def alias?
	true
end

#to_sObject



45
46
47
# File 'lib/build/dependency/provider.rb', line 45

def to_s
	"provides #{name.inspect} -> #{dependencies.collect(&:inspect).join(', ')}"
end