Sha256: f5099fa133b6eb9b704a5f1e5a0df706cd4d114522e15ef7911ca42af3d4caa4
Contents?: true
Size: 622 Bytes
Versions: 10
Compression:
Stored size: 622 Bytes
Contents
module MetaTags # Represents an HTML meta tag with no content (<tag />). class Tag attr_reader :name, :attributes # Initializes a new instance of Tag class. # # @param [String, Symbol] name HTML tag name # @param [Hash] attributes list of HTML tag attributes # def initialize(name, attributes = {}) @name = name @attributes = attributes end # Render tag into a Rails view. # # @param [ActionView::Base] view instance of a Rails view. # @return [String] HTML string for the tag. # def render(view) view.tag(name, attributes) end end end
Version data entries
10 entries across 10 versions & 2 rubygems