Module: Qe::Action
- Defined in:
- lib/qe/action.rb
Constant Summary collapse
- MissingActionError =
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/qe/action.rb', line 5 def perform action = .fetch(:action, :default) raise MissingActionError, "the action #{action.inspect} is not defined" unless respond_to?(action) public_send(action) end |