Class: Build::Dependency::Resolver

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

Direct Known Subclasses

Chain, PartialChain

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResolver

Returns a new instance of Resolver.



38
39
40
41
42
43
44
# File 'lib/build/dependency/resolver.rb', line 38

def initialize
	@resolved = {}
	@ordered = []
	@provisions = []
	@unresolved = []
	@conflicts = {}
end

Instance Attribute Details

#conflictsObject (readonly)

Returns the value of attribute conflicts.



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

def conflicts
  @conflicts
end

#orderedObject (readonly)

Returns the value of attribute ordered.



47
48
49
# File 'lib/build/dependency/resolver.rb', line 47

def ordered
  @ordered
end

#provisionsObject (readonly)

Returns the value of attribute provisions.



48
49
50
# File 'lib/build/dependency/resolver.rb', line 48

def provisions
  @provisions
end

#resolvedObject (readonly)

Returns the value of attribute resolved.



46
47
48
# File 'lib/build/dependency/resolver.rb', line 46

def resolved
  @resolved
end

#unresolvedObject (readonly)

Returns the value of attribute unresolved.



49
50
51
# File 'lib/build/dependency/resolver.rb', line 49

def unresolved
  @unresolved
end

Instance Method Details

#freezeObject



52
53
54
55
56
57
58
59
60
61
62
# File 'lib/build/dependency/resolver.rb', line 52

def freeze
	return unless frozen?
	
	@resolved.freeze
	@ordered.freeze
	@provisions.freeze
	@unresolved.freeze
	@conflicts.freeze
	
	super
end