class RDF::RDFa::Reader::REXML::NodeSetProxy
NodeSet proxy
Attributes
node_set[R]
parent[R]
Public Class Methods
new(node_set, parent)
click to toggle source
# File lib/rdf/rdfa/reader/rexml.rb, line 178 def initialize(node_set, parent) @node_set = node_set @parent = parent end
Public Instance Methods
each() { |node_proxy| ... }
click to toggle source
Return a proxy for each child
@yield child @yieldparam [NodeProxy]
# File lib/rdf/rdfa/reader/rexml.rb, line 188 def each @node_set.each do |c| yield NodeProxy.new(c, parent) end end
method_missing(method, *args)
click to toggle source
Proxy for everything else to @node_set
# File lib/rdf/rdfa/reader/rexml.rb, line 201 def method_missing(method, *args) @node_set.send(method, *args) end
to_html()
click to toggle source
# File lib/rdf/rdfa/reader/rexml.rb, line 195 def to_html node_set.map(&:to_s).join("") end