Method: Cases::Case#execute
- Defined in:
- lib/cases/case.rb
#execute(object, result) ⇒ Object
24 25 26 27 28 |
# File 'lib/cases/case.rb', line 24 def execute(object, result) return if !result.send(event) self.result = action_block.call([:on_self] ? object : result) end |