Class: Symbol

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

Overview

<= 1.8.7 compat…

Instance Method Summary collapse

Instance Method Details

#<=>(with) ⇒ Object

Standard in ruby 1.9. See official documentation



139
140
141
142
# File 'lib/vlc_programmer.rb', line 139

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