class NilDuck def name 'Demo Duck' end def status 'sleeping' end def color 'gray' end def migratory? true end def method_missing(name, *args) Duck.new.respond_to?(name) ? nil : super end end