Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#<=>(o) ⇒ Object

#to_s makes sense, but #to_i is just as effective.



18
# File 'lib/maveric/extensions.rb', line 18

def <=> o; o.instance_of?(Symbol) ? self.to_i <=> o.to_i : super; end