Method: Coco::Tag#initialize
- Defined in:
- app/components/coco/tag.rb
permalink #initialize(tag_name = :div, strip: false, root: false, **tag_attrs) ⇒ Tag
Returns a new instance of Tag.
10 11 12 13 14 15 |
# File 'app/components/coco/tag.rb', line 10 def initialize(tag_name = :div, strip: false, root: false, **tag_attrs) @tag_name = tag_name @strip = strip @tag_attrs = tag_attrs @root = root end |