module FSSM::Tree::NodeBase
Public Class Methods
Protected Instance Methods
Source
# File lib/fssm/tree.rb, line 9 def child(segment) @children["#{segment}"] end
Source
# File lib/fssm/tree.rb, line 13 def child!(segment) (@children["#{segment}"] ||= Node.new) end
Source
# File lib/fssm/tree.rb, line 17 def has_child?(segment) @children.has_key?("#{segment}") end
Source
# File lib/fssm/tree.rb, line 21 def remove_child(segment) @children.delete("#{segment}") end