Class: Symbol

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/bibtex/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



6
7
8
9
# File 'lib/bibtex/compatibility.rb', line 6

def <=>(other)
  return nil unless other.is_a?(String) || other.is_a?(Symbol)
  to_s <=> other.to_s
end