Class: Metaa::Tag

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/metaa/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Tag

Returns a new instance of Tag.



6
7
8
# File 'lib/metaa/tag.rb', line 6

def initialize(attributes = {})
  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



4
5
6
# File 'lib/metaa/tag.rb', line 4

def attributes
  @attributes
end

Instance Method Details

#to_htmlObject



10
11
12
# File 'lib/metaa/tag.rb', line 10

def to_html
  tag(:meta, @attributes)
end