Class: Cuprum::BuiltIn::NullCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/cuprum/built_in/null_command.rb

Overview

A predefined command that does nothing when called.

Examples:

result = NullCommand.new.call
result.value
#=> nil
result.success?
#=> true

Direct Known Subclasses

NullOperation

Instance Method Summary collapse

Methods inherited from Command

#call, #to_proc

Methods included from Steps

#step, #steps

Methods included from Currying

#curry

Methods included from Processing

#arity, #call

Constructor Details

#initializeNullCommand

Returns a new instance of NullCommand.



16
17
18
# File 'lib/cuprum/built_in/null_command.rb', line 16

def initialize
  super(&nil)
end