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



16
17
18
# File 'lib/mcollective/monkey_patches.rb', line 16

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