Module: WithAction
- Defined in:
- lib/with_action/version.rb,
lib/with_action/with_action.rb
Defined Under Namespace
Classes: ActionResponder
Constant Summary collapse
- VERSION =
"1.0.0"
Instance Method Summary collapse
Instance Method Details
#with_action(*actions) {|responder| ... } ⇒ Object
2 3 4 5 6 7 |
# File 'lib/with_action/with_action.rb', line 2 def with_action(*actions) responder = ActionResponder.new(self) yield responder if block_given? actions.each {|a| responder.send(a) } responder.respond end |