Module: EventSourcing::Aggregate::ClassMethods

Defined in:
lib/event_sourcing/aggregate.rb

Instance Method Summary collapse

Instance Method Details

#handle(event_name, &block) ⇒ Object



25
26
27
# File 'lib/event_sourcing/aggregate.rb', line 25

def handle(event_name, &block)
  define_method "apply_#{event_name}", &block
end