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

represents print statement for String and NativeExpression

Methods

_inspect   accept   new  

Attributes

args  [R] 

Public Class methods

[Source]

# File kwartz/node.rb, line 179
    def initialize(args)
      @args = args    # array
    end

Public Instance methods

[Source]

# File kwartz/node.rb, line 185
    def _inspect(indent=0)
      list = @args.collect { |arg|
        arg.is_a?(NativeExpression) ? "<%=#{arg.code}%>" : arg.inspect
      }
      return "[ " + list.join(', ') + "]"
    end

[Source]

# File kwartz/node.rb, line 193
    def accept(translator)
      translator.translate_print_stmt(self)
    end

[Validate]