class JSON::LD::API::REXML::NodeSetProxy
NodeSet proxy
Attributes
node_set[R]
parent[R]
Public Class Methods
new(node_set, parent)
click to toggle source
# File lib/json/ld/html/rexml.rb, line 139 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/json/ld/html/rexml.rb, line 149 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/json/ld/html/rexml.rb, line 162 def method_missing(method, *args) @node_set.send(method, *args) end
to_html()
click to toggle source
# File lib/json/ld/html/rexml.rb, line 156 def to_html node_set.map(&:to_s).join("") end