Method: Jsm::EventExecutor::Base#execute

Defined in:
lib/jsm/event_executor/base.rb

#execute(event, obj) ⇒ Object

it execute event for the object. If transition failed or invalid by validation toward the object, then it will return false



12
13
14
# File 'lib/jsm/event_executor/base.rb', line 12

def execute(event, obj)
  can_be_executed?(event, obj) ? event.execute(obj) : false
end