Class: Faust2Ruby::AST::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/faust2ruby/ast.rb

Overview

Base class for all AST nodes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line: nil, column: nil) ⇒ Node

Returns a new instance of Node.



11
12
13
14
# File 'lib/faust2ruby/ast.rb', line 11

def initialize(line: nil, column: nil)
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



9
10
11
# File 'lib/faust2ruby/ast.rb', line 9

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



9
10
11
# File 'lib/faust2ruby/ast.rb', line 9

def line
  @line
end