Class: Symbol

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

Overview

Core Symbol class.

Instance Method Summary collapse

Instance Method Details

#<=>(b) ⇒ Object

Comparison operator based on the one in the String class.



4
5
6
# File 'lib/glyph/system_extensions.rb', line 4

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