struct Sthx::Tree::AttributeView

Overview

An enumerable view over the attributes of a Tree.

Included Modules

Defined in:

synthax/tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : TreeData) #

[View source]

Instance Method Detail

def []?(name : String) : Bytes | Nil #

Returns a string view of the value of the attribute with the given name.


[View source]
def each(& : Tuple(String, Bytes) -> ) #

Yields each attribute.


[View source]