class XPath::XPathProc

Attributes

source[R]

Public Class Methods

new(proc, source) click to toggle source
# File lib/xml/xpath.rb, line 480
def initialize(proc, source)
  @proc = proc
  @source = source
end

Public Instance Methods

call(context) click to toggle source
# File lib/xml/xpath.rb, line 487
def call(context)
  @proc.call context
end