Class: String

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

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



725
726
727
728
729
730
731
# File 'lib/sycl.rb', line 725

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

#original_comparatorObject



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

alias_method :original_comparator, :<=>