Class: AnyValue::SortedArray

Inherits:
Anything show all
Defined in:
lib/any_value.rb

Overview

It’s the same as:

sorted_array = array_of(increasing)

Instance Method Summary collapse

Methods inherited from Anything

#^, #initialize, #inspect, #to_str

Constructor Details

This class inherits a constructor from AnyValue::Anything

Instance Method Details

#==(o) ⇒ Object



173
174
175
# File 'lib/any_value.rb', line 173

def ==(o)
  o == o.sort
end

#to_aryObject



177
178
179
# File 'lib/any_value.rb', line 177

def to_ary
  self
end