Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/log2counter/core_ext/compare_strings_and_fixnums.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



49
50
51
52
53
54
# File 'lib/log2counter/core_ext/compare_strings_and_fixnums.rb', line 49

def <=>(other)
  case other
    when String then -1  # Strings always sort after us.
    else             _log2counter_original_cmp(other)
  end
end

#_log2counter_original_cmpObject



47
# File 'lib/log2counter/core_ext/compare_strings_and_fixnums.rb', line 47

alias_method :_log2counter_original_cmp, :<=>