Method: Ariel::Node::Structure#initialize

Defined in:
lib/ariel/node/structure.rb

#initialize(name = :root, type = :not_list) {|_self| ... } ⇒ Structure

Returns a new instance of Structure.

Yields:

  • (_self)

Yield Parameters:



11
12
13
14
15
# File 'lib/ariel/node/structure.rb', line 11

def initialize(name=:root, type=:not_list, &block)
  super(name)
  @node_type=type
  yield self if block_given?
end