class Oga::XPath::Context
Class used as the context for compiled XPath
Procs.
The binding of this class is used for the binding of Procs compiled by {Compiler}. Not using a specific binding would result in the procs using the binding of {Compiler#compile}, which could lead to race conditions.
Public Instance Methods
evaluate(string)
click to toggle source
@param [String] string @return [Proc]
# File lib/oga/xpath/context.rb, line 12 def evaluate(string) binding.eval(string) end