class AnyValue::Increasing
Public Class Methods
new()
click to toggle source
# File lib/any_value.rb, line 225 def initialize @last = nil @for_inspect = nil end
Public Instance Methods
==(o)
click to toggle source
Calls superclass method
AnyValue::Anything#==
# File lib/any_value.rb, line 230 def ==(o) @for_inspect = @last if @last result = o > @last @last = o result else @last = o super end end
inspect()
click to toggle source
# File lib/any_value.rb, line 242 def inspect "#<Increasing last=#{@for_inspect.inspect}>" end