Module: ServiceObjects

Defined in:
lib/service_objects.rb,
lib/service_objects/null.rb,
lib/service_objects/base.rb,
lib/service_objects/message.rb,
lib/service_objects/invalid.rb,
lib/service_objects/listener.rb,
lib/service_objects/helpers/messages.rb,
lib/service_objects/utils/normal_hash.rb,
lib/service_objects/helpers/parameters.rb,
lib/service_objects/helpers/dependable.rb,
lib/service_objects/helpers/exceptions.rb,
lib/service_objects/helpers/validations.rb,
lib/service_objects/helpers/parameterized.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Helpers, Utils Classes: Base, Invalid, Listener, Message

Constant Summary collapse

NULL =
Note:

The constant is a singleton black hole object that returns itself to any method call

Implements Null Object pattern

Examples:

ServiceObjects::NULL.respond_to? :arbitrary_method
# => true

ServiceObjects::NULL.arbitrary_method
# => ServiceObjects::NULL

See Also:

Naught.build do |config|
  config.black_hole
  config.singleton
end.instance