class Myhtml::Iterator
- Myhtml::Iterator
- Reference
- Object
Included Modules
- Iterator(Myhtml::Node)
Defined in:
myhtml/iterators.crConstructors
Instance Method Summary
- #finalize
- #free
- #inspect(io)
-
#next
Returns the next element in this iterator, or
Iterator::Stop::INSTANCE
if there are no more elements. - #raw_collection : Pointer(Myhtml::Lib::MyhtmlCollectionT)
- #rewind
-
#size : UInt64
Returns the number of elements in the collection.
Constructor Detail
Instance Method Detail
def next
#
Description copied from module Iterator(Myhtml::Node)
Returns the next element in this iterator, or Iterator::Stop::INSTANCE
if there
are no more elements.
def size : UInt64
#
Description copied from module Enumerable(Myhtml::Node)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4