Class Kwartz::ExpandStatement
In: kwartz/node.rb
Parent: Statement

represents _stag, _cont, _etag, _elem, _element(name), and _content(name)

Methods

_inspect   accept   new  

Attributes

kind  [RW] 
name  [R] 

Public Class methods

[Source]

# File kwartz/node.rb, line 147
    def initialize(kind, name=nil)
      @kind = kind    # symbol
      @name = name    # string
    end

Public Instance methods

[Source]

# File kwartz/node.rb, line 155
    def _inspect(indent=0)
      if @kind == :element || @kind == :content
        return "_#{@kind}(#{@name})\n"
      else
        return "_#{@kind}\n"
      end
    end

[Source]

# File kwartz/node.rb, line 164
    def accept(translator)
      assert
    end

[Validate]