An implementation of the Null Object Pattern (renamed “Nil” for Ruby). All methods not defined by Object simply return the Aquarium::Utils::NilObject itself. Users can subclass or add methods to instances to customize the behavior.
# File lib/aquarium/utils/nil_object.rb, line 9 def eql? other other.kind_of? NilObject end
# File lib/aquarium/utils/nil_object.rb, line 13 def method_missing method_sym, *args self end