Method: Rubyvis::Dom#root

Defined in:
lib/rubyvis/dom.rb

#root(node_name = nil) ⇒ Object

Applies the DOM operator, returning the root node.



56
57
58
59
60
# File 'lib/rubyvis/dom.rb', line 56

def root(node_name=nil)
  root=root_recurse(@_map)
  root.node_name=node_name
  root
end