Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/devstructure/puppet.rb

Overview

Make ‘Symbol`s and `nil`s `Comparable` so we can sort each list of resource attributes before converting to a string.

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



27
28
29
# File 'lib/devstructure/puppet.rb', line 27

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