class Cauldron::Scope

Attributes

variables[R]

Public Class Methods

new(variables) click to toggle source
# File lib/cauldron/scope.rb, line 8
def initialize(variables)
  @variables = variables
end

Public Instance Methods

[](index) click to toggle source
# File lib/cauldron/scope.rb, line 18
def [](index)
  variables[index]
end
new_variable!() click to toggle source
# File lib/cauldron/scope.rb, line 12
def new_variable!
  #@variables << "var#{variables.length+1}"
  @variables << "var#{variables.length}"
  @variables.last
end