Class: Symbol

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/mcollective/monkey_patches.rb

Overview

Make arrays of Symbols sortable

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



5
6
7
# File 'lib/mcollective/monkey_patches.rb', line 5

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