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 ResultHelpers

#errors, #failure!, #halt!, #success!

Methods included from Chaining

#chain, #failure, #success, #tap_result, #yield_result

Methods included from Processing

#arity, #build_errors, #call

Constructor Details

This class inherits a constructor from Cuprum::Command