Class: Aurum::Parser::SemanticAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/aurum/engine.rb

Instance Method Summary collapse

Constructor Details

#initializeSemanticAttributes

Returns a new instance of SemanticAttributes.



164
165
166
# File 'lib/aurum/engine.rb', line 164

def initialize
	@hash = {}
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



168
169
170
171
172
# File 'lib/aurum/engine.rb', line 168

def method_missing name, *args
	name_string = name.to_s
	return @hash[name_string] unless name_string[-1] == 61
	@hash[name_string.slice(0..-2)] = args.first
end