Class: DOM::NodeList

Inherits:
Object show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
opal/fron/dom/nodelist.rb

Overview

Node List

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nodes) ⇒ NodeList

Initializes the node list


15
16
17
# File 'opal/fron/dom/nodelist.rb', line 15

def initialize(nodes)
  @nodes = nodes.map { |node| DOM::Element.fromNode node }
end

Instance Attribute Details

#nodesObject (readonly)

Returns the value of attribute nodes


8
9
10
# File 'opal/fron/dom/nodelist.rb', line 8

def nodes
  @nodes
end