class FlexMock::Undefined

Undefined is a self preserving undefined object. The result of any interaction with the undefined object will be the undefined object itself.

Public Instance Methods

<=>(other) click to toggle source
# File lib/flexmock/undefined.rb, line 34
def <=>(other)
  self
end
clone() click to toggle source
# File lib/flexmock/undefined.rb, line 30
def clone
  self
end
coerce(other) click to toggle source
# File lib/flexmock/undefined.rb, line 38
def coerce(other)
  [FlexMock.undefined, FlexMock.undefined]
end
inspect() click to toggle source
# File lib/flexmock/undefined.rb, line 26
def inspect
  to_s
end
method_missing(sym, *args, &block) click to toggle source
# File lib/flexmock/undefined.rb, line 18
def method_missing(sym, *args, &block)
  self
end
to_s() click to toggle source
# File lib/flexmock/undefined.rb, line 22
def to_s
  "-UNDEFINED-"
end