Class: Tumblargh::Node::Root

Inherits:
Base
  • Object
show all
Defined in:
lib/tumblargh/node/root.rb

Direct Known Subclasses

Block

Instance Method Summary collapse

Methods inherited from Base

#type

Instance Method Details

#to_sObject



10
11
12
# File 'lib/tumblargh/node/root.rb', line 10

def to_s
  elements.map(&:to_s).join ''
end

#to_treeObject



6
7
8
# File 'lib/tumblargh/node/root.rb', line 6

def to_tree
  elements.map(&:to_tree)
end