Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object

Method for comparison between symbols.



4
5
6
# File 'lib/prigner/extensions.rb', line 4

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