Module: Rtml::Test::BuiltinVariables

Included in:
TmlApplication
Defined in:
lib/rtml/test/builtin_variables.rb

Constant Summary collapse

BUILTIN_VARIABLES =
{}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.add_variable(name, options) ⇒ Object

:nodoc:



4
5
6
7
# File 'lib/rtml/test/builtin_variables.rb', line 4

def self.add_variable(name, options) #:nodoc:
  options = { :type => options } if !options.kind_of?(Hash)
  BUILTIN_VARIABLES[name] = options
end

Instance Method Details

#declare_builtin_variables!Object



26
27
28
29
30
# File 'lib/rtml/test/builtin_variables.rb', line 26

def declare_builtin_variables!
  BUILTIN_VARIABLES.each do |name, options|
    declare_variable(name, options)
  end
end