Class: AnyValue::SortedArray
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
172 173 174 |
# File 'lib/any_value.rb', line 172 def ==(o) o == o.sort end |
#to_ary ⇒ Object
176 177 178 |
# File 'lib/any_value.rb', line 176 def to_ary self end |