Sha256: 26bd069acc975f01e0a90eda9e5a82fb58927c7d9b7119e37331e616fae79377

Contents?: true

Size: 223 Bytes

Versions: 1

Compression:

Stored size: 223 Bytes

Contents

module Metamagic
  class MetaTag < Tag
    def to_html
      return unless values = Array(value).compact.presence
      tag(:meta, name: key, content: values.join(", "))
    end

    def sort_order
      2
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metamagic-3.0.1 lib/metamagic/tags/meta_tag.rb