Sha256: 8b278e3f24d9c8b839f2672ceaa08ee2c2d3fc8b6e26bce625c299913b9c30c6

Contents?: true

Size: 174 Bytes

Versions: 2

Compression:

Stored size: 174 Bytes

Contents

module Metamagic
  class PropertyTag < Tag
    def to_html
      Array(value).map { |value| tag(:meta, property: key, content: value) }.join("\n").html_safe
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metamagic-3.0.0.beta2 lib/metamagic/tags/property_tag.rb
metamagic-3.0.0.beta1 lib/metamagic/tags/property_tag.rb