Module: Treetop_Configgy::Assignment1

Defined in:
lib/treetop/configgy.rb

Instance Method Summary collapse

Instance Method Details

#apply(config_map, parser) ⇒ Object



158
159
160
161
162
163
# File 'lib/treetop/configgy.rb', line 158

def apply(config_map, parser)
  key = identifier.text_value
  if (op.text_value == "=") or !config_map.has_key?(key)
    config_map[key] = value.to_value(config_map)
  end
end