class Decontaminate::Decoder::ChildNodeProxy

Attributes

decoder[R]
xpath[R]

Public Class Methods

new(xpath, decoder) click to toggle source
# File lib/decontaminate/decoder/child_node_proxy.rb, line 6
def initialize(xpath, decoder)
  @xpath = xpath
  @decoder = decoder
end

Public Instance Methods

decode(this, xml_node) click to toggle source
# File lib/decontaminate/decoder/child_node_proxy.rb, line 11
def decode(this, xml_node)
  child = xml_node && xml_node.at_xpath(xpath)
  decoder.decode this, child
end