Method: RD::Tree#parse
- Defined in:
- lib/rd/tree.rb
#parse ⇒ Object
48 49 50 51 52 |
# File 'lib/rd/tree.rb', line 48 def parse parser = RDParser.new src = @src.respond_to?(:to_a) ? @src.to_a : @src.split(/^/) set_root(parser.parse(src, self)) end |