Class: MetaTags::ContentTag
- Defined in:
- lib/meta_tags/content_tag.rb,
sig/lib/meta_tags/content_tag.rbs
Overview
Represents an HTML meta tag with content (:content attribute.
Instance Attribute Summary
Attributes inherited from Tag
Instance Method Summary collapse
-
#render(view) ⇒ String
Renders the tag in a Rails view.
Methods inherited from Tag
#initialize, #serialize_iso8601_attributes
Constructor Details
This class inherits a constructor from MetaTags::Tag
Instance Method Details
#render(view) ⇒ String
Renders the tag in a Rails view.
11 12 13 |
# File 'lib/meta_tags/content_tag.rb', line 11 def render(view) view.content_tag(name, attributes[:content], serialize_iso8601_attributes(attributes.except(:content))) end |