Class: RDF::RDFa::Reader::REXML::NodeSetProxy
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/rdf-rdfa-ea6265716853/lib/rdf/rdfa/reader/rexml.rb
Overview
NodeSet proxy
Instance Attribute Summary collapse
-
#node_set ⇒ Object
readonly
Returns the value of attribute node_set.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#each {|| ... } ⇒ Object
Return a proxy for each child.
-
#initialize(node_set, parent) ⇒ NodeSetProxy
constructor
A new instance of NodeSetProxy.
-
#method_missing(method, *args) ⇒ Object
Proxy for everything else to @node_set.
- #to_html ⇒ Object
Constructor Details
#initialize(node_set, parent) ⇒ NodeSetProxy
Returns a new instance of NodeSetProxy.
178 179 180 181 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-rdfa-ea6265716853/lib/rdf/rdfa/reader/rexml.rb', line 178 def initialize(node_set, parent) @node_set = node_set @parent = parent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
Proxy for everything else to @node_set
201 202 203 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-rdfa-ea6265716853/lib/rdf/rdfa/reader/rexml.rb', line 201 def method_missing(method, *args) @node_set.send(method, *args) end |
Instance Attribute Details
#node_set ⇒ Object (readonly)
Returns the value of attribute node_set.
175 176 177 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-rdfa-ea6265716853/lib/rdf/rdfa/reader/rexml.rb', line 175 def node_set @node_set end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
176 177 178 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-rdfa-ea6265716853/lib/rdf/rdfa/reader/rexml.rb', line 176 def parent @parent end |