class Beckett::Node::Root
Public Instance Methods
to_h()
click to toggle source
# File lib/beckett/node/root.rb, line 3 def to_h { root: {}.tap do |root| root[:children] = children.map(&:to_h) end } end
# File lib/beckett/node/root.rb, line 3 def to_h { root: {}.tap do |root| root[:children] = children.map(&:to_h) end } end