Sha256: 2b412f0a3249f12f48adab8c2a845f96671c18cc2667f96b6c2dd323359bd8a0
Contents?: true
Size: 298 Bytes
Versions: 1
Compression:
Stored size: 298 Bytes
Contents
module ActionMetaTags module Tags class Title def initialize(&block) @renderer = block end def render(view, object) content = object.instance_exec(&renderer) view.content_tag(:title, content) end attr_reader :renderer end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_meta_tags-0.1.1 | lib/action_meta_tags/tags/title.rb |