Class: Symbol

Inherits:
Object show all
Defined in:
lib/sitefuel/extensions/SymbolComparison.rb

Overview

File

SymbolComparison.rb

Author

wkm

Copyright

2009, Zanoccio LLC.

License

GPL version 2.0 (see LICENSE.rb)

Defines a spaceship for symbols based off of to_s, this let’s us sort lists of symbols.

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



12
13
14
# File 'lib/sitefuel/extensions/SymbolComparison.rb', line 12

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