Undefined is a self preserving undefined object. The result of any interaction with the undefined object will be the undefined object itself.
Methods
Public Instance methods
[ show source ]
# File lib/flexmock/undefined.rb, line 30
30: def clone
31: self
32: end
[ show source ]
# File lib/flexmock/undefined.rb, line 34
34: def coerce(other)
35: [FlexMock.undefined, FlexMock.undefined]
36: end
[ show source ]
# File lib/flexmock/undefined.rb, line 26
26: def inspect
27: to_s
28: end
[ show source ]
# File lib/flexmock/undefined.rb, line 18
18: def method_missing(sym, *args, &block)
19: self
20: end
[ show source ]
# File lib/flexmock/undefined.rb, line 22
22: def to_s
23: "-UNDEFINED-"
24: end