Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/sycl.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



715
716
717
718
719
720
721
# File 'lib/sycl.rb', line 715

def <=>(other)
  if other.is_a?(Sycl::Hash)
    -1 * (other <=> self)
  else
    self.__send__(:original_comparator, other)
  end
end

#original_comparatorObject



713
# File 'lib/sycl.rb', line 713

alias_method :original_comparator, :<=>