class RainforestRubyRuntime::Variables::Registry

Attributes

variables[R]

Public Class Methods

new(variables = {}) click to toggle source
# File lib/rainforest_ruby_runtime/variables/registry.rb, line 4
def initialize(variables = {})
  @variables = {}
end

Public Instance Methods

[](name) click to toggle source
# File lib/rainforest_ruby_runtime/variables/registry.rb, line 16
def [](name)
  variables[name]
end
has_variable?(name) click to toggle source
# File lib/rainforest_ruby_runtime/variables/registry.rb, line 12
def has_variable?(name)
  variables.has_key?(name)
end
register(variable) click to toggle source
# File lib/rainforest_ruby_runtime/variables/registry.rb, line 8
def register(variable)
  variables[variable.name] = variable
end