Class: Resyma::ActionEnvironment

Inherits:
Object
  • Object
show all
Defined in:
lib/resyma/language.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nodes, binding, filename, lineno) ⇒ ActionEnvironment

Returns a new instance of ActionEnvironment.



121
122
123
124
125
126
# File 'lib/resyma/language.rb', line 121

def initialize(nodes, binding, filename, lineno)
  @nodes = nodes
  @src_binding = binding
  @src_filename = filename
  @src_lineno = lineno
end

Instance Attribute Details

#nodesObject (readonly)

Returns the value of attribute nodes.



128
129
130
# File 'lib/resyma/language.rb', line 128

def nodes
  @nodes
end

#src_bindingObject (readonly)

Returns the value of attribute src_binding.



128
129
130
# File 'lib/resyma/language.rb', line 128

def src_binding
  @src_binding
end

#src_filenameObject (readonly)

Returns the value of attribute src_filename.



128
129
130
# File 'lib/resyma/language.rb', line 128

def src_filename
  @src_filename
end

#src_linenoObject (readonly)

Returns the value of attribute src_lineno.



128
129
130
# File 'lib/resyma/language.rb', line 128

def src_lineno
  @src_lineno
end