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



13
14
15
# File 'lib/mcollective/monkey_patches.rb', line 13

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