Class: Metaa::Tag
- Inherits:
-
Object
- Object
- Metaa::Tag
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/metaa/tag.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Tag
constructor
A new instance of Tag.
- #to_html ⇒ Object
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
#attributes ⇒ Object (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_html ⇒ Object
10 11 12 |
# File 'lib/metaa/tag.rb', line 10 def to_html tag(:meta, @attributes) end |