class StructuredSearch::Tree::BaseNode

The base of any node in the AST, it stores the line, column and type of token.

Attributes

column[RW]
line

The line this AST node was found

column

The column this AST node was found

type

Holds the type of node for fast lookup

line[RW]
line

The line this AST node was found

column

The column this AST node was found

type

Holds the type of node for fast lookup

type[RW]
line

The line this AST node was found

column

The column this AST node was found

type

Holds the type of node for fast lookup

Public Class Methods

new(topts = {}) click to toggle source

sends each token value to it's respective attribute

# File lib/structured_search/base_node.rb, line 14
def initialize(topts = {})
  topts.each { |key, val| send "#{key}=", val }
end