class String

Allow to compare strings and fixnums; the latter sorting before the other.

Public Instance Methods

<=>(other) click to toggle source
# File lib/log2counter/core_ext/compare_strings_and_fixnums.rb, line 37
def <=>(other)
  case other
    when Fixnum then 1  # Fixnums always sort before us.
    else             _log2counter_original_cmp(other)
  end
end
Also aliased as: _log2counter_original_cmp
_log2counter_original_cmp(other)
Alias for: <=>