Sha256: 86b3669f049e776649002ef1d64d50230f03286481302fc3b66c64cfd19fdf85
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
module Metamagic module HelperMethods def meta(options = {}) @meta_tags = options end def metamagic(options = {}) options = @meta_tags || options out = '' options.each do |key, value| if value.is_a?(Array) value = value.join(", ") end out += tag('meta', :name => key.to_s, :content => value) if value end out.html_safe end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metamagic-1.0.0 | lib/metamagic/helper_methods.rb |