Method: Cuprum::Command#process

Defined in:
lib/cuprum/command.rb

#process(*arguments, **keywords) { ... } ⇒ Cuprum::Result, Object

Note:

This is a private method.

The implementation of the command.

Whereas the #call method provides the public interface for calling a command, the #process method defines the actual implementation. This method should not be called directly.

When the command is called via #call, the parameters are passed to #process. If #process returns a result, that result will be returned by #call; otherwise, the value returned by #process will be wrapped in a successful Cuprum::Result object.

Parameters:

  • arguments (Array)

    The arguments, if any, passed from #call.

  • keywords (Hash)

    The keywords, if any, passed from #call.

Yields:

  • The block, if any, passed from #call.

Returns:

  • (Cuprum::Result, Object)

    a result object, or the value of the result object to be returned by #call.



148
149
150
# File 'lib/cuprum/command.rb', line 148

def process(...)
  process_block? ? process_block(...) : super
end