class XmlMapper::TextNode

Public Instance Methods

find(node, namespace, xpath_options) { |node| ... } click to toggle source
# File lib/xmlmapper/text_node.rb, line 4
def find(node, namespace, xpath_options)
  if node.children.any? {|c| c.text?}
    yield(node)
  else
    yield(nil)
  end
end