class Myhtml::Iterator

Included Modules

Defined in:

myhtml/iterators.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tree : Tree, raw_collection : Pointer(Lib::MyhtmlCollectionT)) #

[View source]

Instance Method Detail

def finalize #

[View source]
def free #

[View source]
def inspect(io) #

[View source]
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.


[View source]
def raw_collection : Pointer(Myhtml::Lib::MyhtmlCollectionT) #

[View source]
def rewind #

[View source]
def size : UInt64 #
Description copied from module Enumerable(Myhtml::Node)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]