Sha256: c030d60796c3001adcc26ad1ccdb356c26111c4a140d85e2144d417ccdacd244

Contents?: true

Size: 178 Bytes

Versions: 7

Compression:

Stored size: 178 Bytes

Contents

module Metamagic
  class LinkTag < Tag
    def to_html
      interpolated_values.map { |value| tag(:link, rel: key, href: value) }.join("\n").html_safe.presence
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metamagic-3.1.7 lib/metamagic/tags/link_tag.rb
metamagic-3.1.6 lib/metamagic/tags/link_tag.rb
metamagic-3.1.5 lib/metamagic/tags/link_tag.rb
metamagic-3.1.4 lib/metamagic/tags/link_tag.rb
metamagic-3.1.3 lib/metamagic/tags/link_tag.rb
metamagic-3.1.2 lib/metamagic/tags/link_tag.rb
metamagic-3.1.1 lib/metamagic/tags/link_tag.rb