🚨 You are viewing the legacy v1.x docs. See the new v2 documentation →
v1.5.5

Tag

Represents a custom tag instance.

Attributes

.tag_name

Tag name

.tag_body

The raw tag body string

.args

Hash of argument values parsed from the tag body

.opts

Hash of options parsed from the tag body

All entries in the tag.args hash are additionally made available as dynamic attributes on the tag object itself:

tag.args[:foo] = "bar"
tag.foo # --> "bar"