class TracWiki::Node
Attributes
attrs[RW]
cont[RW]
par[RW]
tag[RW]
Public Class Methods
new(tag_name, par=nil, attrs={}, cont=[])
click to toggle source
# File lib/trac-wiki/tree.rb, line 18 def initialize(tag_name, par=nil, attrs={}, cont=[]) @tag = nil @tag = tag_name.to_sym if tag_name @par = par cont = [ cont ] if cont.is_a? String @cont = cont || [] @attrs = attrs || {} end
Public Instance Methods
add(cont)
click to toggle source
# File lib/trac-wiki/tree.rb, line 27 def add(cont) @cont << cont end