Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/maveric/extensions.rb
Instance Method Summary collapse
-
#<=>(o) ⇒ Object
#to_s makes sense, but #to_i is just as effective.
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 |