struct Sthx::Tree::AttributeView
- Sthx::Tree::AttributeView
- Struct
- Value
- Object
Overview
An enumerable view over the attributes of a Tree
.
Included Modules
- Enumerable({String, Slice(UInt8)})
Defined in:
synthax/tree.crConstructors
Instance Method Summary
-
#[]?(name : String) : Bytes | Nil
Returns a string view of the value of the attribute with the given name.
-
#each(& : Tuple(String, Bytes) -> )
Yields each attribute.
Constructor Detail
Instance Method Detail
def []?(name : String) : Bytes | Nil
#
Returns a string view of the value of the attribute with the given name.