Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#<=>(with) ⇒ Object



19
20
21
22
# File 'lib/tickle.rb', line 19

def <=>(with)
  return nil unless with.is_a? Symbol
  to_s <=> with.to_s
end