Sha256: e9f509b7dd6d79209917bd985083d4256e2d9bfb2d181f266ce8dbaded1dc31c
Contents?: true
Size: 391 Bytes
Versions: 5
Compression:
Stored size: 391 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