Module: Metadata::Hook::ClassMethods
- Defined in:
- lib/metadata/hook.rb
Instance Attribute Summary collapse
-
#_metadata ⇒ Object
Returns the value of attribute _metadata.
Instance Method Summary collapse
Instance Attribute Details
#_metadata ⇒ Object
Returns the value of attribute _metadata.
14 15 16 |
# File 'lib/metadata/hook.rb', line 14 def @_metadata end |
Instance Method Details
#metadata(*args, &block) ⇒ Object
16 17 18 19 |
# File 'lib/metadata/hook.rb', line 16 def (*args, &block) = args.first.is_a?(Hash) ? args.first : {} self. = {format: [:format] || :string, block: block} end |