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

Method Summary

Methods inherited from Command

#initialize

Methods included from Chaining

#call, #chain, #chain!, #tap_result, #tap_result!, #yield_result, #yield_result!

Methods included from Processing

#arity, #call

Constructor Details

This class inherits a constructor from Cuprum::Command