Method: Rubyvis::Panel#add

Defined in:
lib/rubyvis/mark/panel.rb

#add(type) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/rubyvis/mark/panel.rb', line 35

def add(type)
  child=type.new
  child.parent=self
  child.root=root
  child.child_index=children.size
  children.push(child)
  child
end