Module: Serega::SeregaPlugins::Metadata::ClassMethods
- Defined in:
- lib/serega/plugins/metadata/metadata.rb
Overview
Serega class additional/patched class methods
Instance Method Summary collapse
-
#meta_attribute(*path, **opts, &block) ⇒ Serega::SeregaPlugins::Metadata::MetaAttribute
Define metadata attribute.
-
#meta_attributes ⇒ Hash<Symbol => Serega::SeregaPlugins::Metadata::MetaAttribute>
List of added metadata attributes.
Instance Method Details
#meta_attribute(*path, **opts, &block) ⇒ Serega::SeregaPlugins::Metadata::MetaAttribute
Define metadata attribute
164 165 166 167 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 164 def (*path, **opts, &block) attribute = self::MetaAttribute.new(path: path, opts: opts, block: block) [attribute.name] = attribute end |
#meta_attributes ⇒ Hash<Symbol => Serega::SeregaPlugins::Metadata::MetaAttribute>
List of added metadata attributes
151 152 153 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 151 def @meta_attributes ||= {} end |