class Metaa::Meta
Attributes
object[R]
Public Class Methods
new(object = nil)
click to toggle source
# File lib/metaa/meta.rb, line 5 def initialize(object = nil) @object = object end
Public Instance Methods
define_meta()
click to toggle source
# File lib/metaa/meta.rb, line 17 def define_meta # do nothing end
meta(attributes = {})
click to toggle source
# File lib/metaa/meta.rb, line 13 def meta(attributes = {}) tag_collection.add(attributes) end
tag_collection()
click to toggle source
# File lib/metaa/meta.rb, line 9 def tag_collection @tag_collection ||= TagCollection.new end
to_html()
click to toggle source
# File lib/metaa/meta.rb, line 21 def to_html define_meta if tag_collection.empty? tag_collection.to_html end