Class: Symbol

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

Overview

to sort arrays or hashes with Symbol items or keys

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



3
4
5
# File 'lib/symbol.rb', line 3

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