Method: Puppet::Graph::RbTreeMap::Node#to_hash

Defined in:
lib/puppet/graph/rb_tree_map.rb

#to_hashObject



208
209
210
211
212
213
214
215
216
217
218
219
# File 'lib/puppet/graph/rb_tree_map.rb', line 208

def to_hash
  h = {
    :node => {
      :key => @key,
      :value => @value,
      :color => @color,
    }
  }
  h[:left] = left.to_hash if @left
  h[:right] = right.to_hash if @right
  h
end