Module: Lite::Commands::Errors::ClassMethods
- Defined in:
- lib/lite/commands/errors.rb
Instance Method Summary collapse
Instance Method Details
#perform(*args) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/lite/commands/errors.rb', line 11 def perform(*args) klass = call(*args) if klass.success? yield(klass.result, Lite::Commands::Success, Lite::Commands::Failure) else yield(klass.result, Lite::Commands::Failure, Lite::Commands::Success) end end |