Class: Wombat::Iterator

Inherits:
PropertyContainer show all
Defined in:
lib/wombat/iterator.rb

Instance Attribute Summary collapse

Attributes inherited from PropertyContainer

#iterators

Instance Method Summary collapse

Methods inherited from PropertyContainer

#all_properties, #flatten, #for_each, #method_missing, #to_ary

Constructor Details

#initialize(selector) ⇒ Iterator

Returns a new instance of Iterator.



5
6
7
8
# File 'lib/wombat/iterator.rb', line 5

def initialize selector
  @selector = selector
  super()
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wombat::PropertyContainer

Instance Attribute Details

#selectorObject

Returns the value of attribute selector.



3
4
5
# File 'lib/wombat/iterator.rb', line 3

def selector
  @selector
end