Class: Metaa::Meta
- Inherits:
-
Object
- Object
- Metaa::Meta
- Defined in:
- lib/metaa/meta.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
- #define_meta ⇒ Object
-
#initialize(object = nil) ⇒ Meta
constructor
A new instance of Meta.
- #meta(attributes = {}) ⇒ Object
- #tag_collection ⇒ Object
- #to_html ⇒ Object
Constructor Details
#initialize(object = nil) ⇒ Meta
Returns a new instance of Meta.
5 6 7 |
# File 'lib/metaa/meta.rb', line 5 def initialize(object = nil) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
3 4 5 |
# File 'lib/metaa/meta.rb', line 3 def object @object end |
Instance Method Details
#define_meta ⇒ Object
17 18 19 |
# File 'lib/metaa/meta.rb', line 17 def # do nothing end |
#meta(attributes = {}) ⇒ Object
13 14 15 |
# File 'lib/metaa/meta.rb', line 13 def (attributes = {}) tag_collection.add(attributes) end |
#tag_collection ⇒ Object
9 10 11 |
# File 'lib/metaa/meta.rb', line 9 def tag_collection @tag_collection ||= TagCollection.new end |
#to_html ⇒ Object
21 22 23 24 |
# File 'lib/metaa/meta.rb', line 21 def to_html if tag_collection.empty? tag_collection.to_html end |