Class: Dynflow::Middleware::Resolver

Inherits:
Object
  • Object
show all
Includes:
Algebrick::TypeCheck, TSort
Defined in:
lib/dynflow/middleware/resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(register) ⇒ Resolver

Returns a new instance of Resolver.



9
10
11
# File 'lib/dynflow/middleware/resolver.rb', line 9

def initialize(register)
  @register = Type! register, Middleware::Register
end

Instance Method Details

#resultObject



13
14
15
16
17
18
# File 'lib/dynflow/middleware/resolver.rb', line 13

def result
  @result ||= begin
    @deps = normalize_rules(@register.rules)
    self.tsort
  end
end