Class: Symbol

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/gill/core_extension/symbol.rb

Overview

Addeds support for sorting symbols in ruby >= 1.8.7.

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



8
9
10
# File 'lib/gill/core_extension/symbol.rb', line 8

def <=>(other)
  self.to_s <=> other.to_s
end