Module: Metaa::Concern

Extended by:
ActiveSupport::Concern
Defined in:
lib/metaa/concern.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#metaObject



5
6
7
# File 'lib/metaa/concern.rb', line 5

def meta
  @meta ||= meta_class.new(self)
end

#meta_classObject

Infers the meta class to be used by #meta (e.g. Product maps to ProductMeta).

Returns:

  • Class

    the inferred meta class.



14
15
16
# File 'lib/metaa/concern.rb', line 14

def meta_class
  self.class.meta_class
end

#meta_tagsObject



9
10
11
# File 'lib/metaa/concern.rb', line 9

def meta_tags
  meta.to_html
end