Method: Coco::Tag#call

Defined in:
app/components/coco/tag.rb

#callObject



21
22
23
24
25
26
27
# File 'app/components/coco/tag.rb', line 21

def call
  if SELF_CLOSING_TAGS.include?(@tag_name)
    tag(tag_name, tag_attrs)
  else
    (tag_name, content, tag_attrs)
  end
end