Class: Symbol

Inherits:
Object show all
Defined in:
lib/edl_parser.rb

Overview

1.8.7 1.9 Symbol compat

Instance Method Summary collapse

Instance Method Details

#<=>(with) ⇒ Object

Standard in ruby 1.9. See official documentation



334
335
336
337
# File 'lib/edl_parser.rb', line 334

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