Sha256: a39c0013bba53fc8ed75c7d4465c54dca89e474aada5d4ef823871fdb192e462
Contents?: true
Size: 404 Bytes
Versions: 5
Compression:
Stored size: 404 Bytes
Contents
# One 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. module Aquarium module Utils class Aquarium::Utils::NilObject def method_missing method_sym, *args self end end end end
Version data entries
5 entries across 5 versions & 1 rubygems