Class: Dynflow::Middleware::Resolver
- Inherits:
-
Object
- Object
- Dynflow::Middleware::Resolver
- Includes:
- Algebrick::TypeCheck, TSort
- Defined in:
- lib/dynflow/middleware/resolver.rb
Instance Method Summary collapse
-
#initialize(register) ⇒ Resolver
constructor
A new instance of Resolver.
- #result ⇒ Object
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
#result ⇒ Object
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 |