Class: Citrus::GlobalVariables
- Inherits:
-
Object
- Object
- Citrus::GlobalVariables
- Defined in:
- lib/citrus/compiler/variable.rb
Class Method Summary collapse
Class Method Details
.add(name, value, builder) ⇒ Object
102 103 104 |
# File 'lib/citrus/compiler/variable.rb', line 102 def self.add(name, value, builder) return @variables[name] = GlobalVariable.new(name, value, @module, builder) end |
.init(mod) ⇒ Object
97 98 99 100 |
# File 'lib/citrus/compiler/variable.rb', line 97 def self.init(mod) @module ||= mod @variables ||= {} end |
.named(name) ⇒ Object
106 107 108 |
# File 'lib/citrus/compiler/variable.rb', line 106 def self.named(name) return @variables[name] end |