class Malady::AST::Node

Attributes

filename[R]
line[R]

Public Class Methods

new(filename="(script)", line=1, *args) click to toggle source
# File lib/malady/ast.rb, line 6
def initialize(filename="(script)", line=1, *args)
  @filename = filename
  @line = line
end

Public Instance Methods

pos(g) click to toggle source
# File lib/malady/ast.rb, line 11
def pos(g)
  g.set_line line
end