Sha256: 907e7191d2957108cb8e019e75a6ceddeb21489477cf20af1d37c70fcfe9a4b6
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
module Metamagic class PropertyTag < Tag def initialize(context, key, value) super @key = @key.gsub /^property:/, "" # If added via property helper end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metamagic-3.0.1 | lib/metamagic/tags/property_tag.rb |