Class: Taka::DOM::NodeList

Inherits:
Object
  • Object
show all
Defined in:
lib/taka/dom/node_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ NodeList

Returns a new instance of NodeList.



4
5
6
# File 'lib/taka/dom/node_list.rb', line 4

def initialize &block
  @block = block
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



8
9
10
# File 'lib/taka/dom/node_list.rb', line 8

def method_missing name, *args, &block
  @block.call.send(name, *args, &block)
end