# File src/BindingsParser.rb, line 27 def processMatch(id, klass, data) bindingHash = {} if klass bindingHash["class"] = klass end while data.sub!(BodyPattern, "") key, value = $1, $2 value.sub!(TrimPattern,"") # Just to make sure it is clear, if the binding value either # starts with a digit, a quote character, or a colon, then # it is assumed to be literal binding. The value will be # ran through eval, and whatever is returned will be used # as the value of the binding. if value =~ /^[\d"':]/ bindingHash[key] = LiteralAssociation.new(eval(value)) else bindingHash[key] = PathAssociation.new(value) end end @bindings[id] = bindingHash end