class JSON::LD::API::Nokogiri::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/nokogiri.rb, line 104
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/nokogiri.rb, line 114
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/nokogiri.rb, line 122
def method_missing(method, *args)
  @node_set.send(method, *args)
end