Class: Lutaml::Model::DispatchBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/model/consolidation_rule/dispatch_block.rb

Overview

Helper builder for the dispatch_by block

Instance Method Summary collapse

Instance Method Details

#evaluateObject



23
24
25
26
27
# File 'lib/lutaml/model/consolidation_rule/dispatch_block.rb', line 23

def evaluate(&)
  @routes = {}
  instance_eval(&)
  @routes
end

#route(mapping) ⇒ Object



29
30
31
# File 'lib/lutaml/model/consolidation_rule/dispatch_block.rb', line 29

def route(mapping)
  @routes.merge!(mapping)
end