Sha256: 21b6d440f5498bb09114a6b8ee0d90650b0ccc13e047550675a667596edea814
Contents?: true
Size: 227 Bytes
Versions: 3
Compression:
Stored size: 227 Bytes
Contents
module Metamagic class PropertyTag < Tag def to_html Array(value).compact.map { |value| tag(:meta, property: key, content: value) }.join("\n").html_safe.presence end def sort_order 3 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metamagic-3.1.0 | lib/metamagic/tags/property_tag.rb |
metamagic-3.0.3 | lib/metamagic/tags/property_tag.rb |
metamagic-3.0.2 | lib/metamagic/tags/property_tag.rb |