Module: TextArray

Included in:
Tree, TreeObject
Defined in:
lib/rwd/tree.rb

Instance Method Summary collapse

Instance Method Details

#textarrayObject



12
13
14
15
16
# File 'lib/rwd/tree.rb', line 12

def textarray
  @children.collect do |obj|
    [obj.text] << obj.textarray
  end.flatten.compact
end