struct Myhtml::EachTagIterator

Included Modules

Defined in:

myhtml/iterators.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tree : Tree, tag_id : Lib::MyhtmlTags) #

[View source]

Instance Method Detail

def count #

[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 rewind #

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

Returns the number of elements in the collection.

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

[View source]