Module: KeyTree::MetaData
Overview
Mixin for adding a meta_data key tree
Instance Method Summary collapse
-
#meta_data ⇒ Object
Get the meta_data for an object.
-
#with_meta_data {|meta_data| ... } ⇒ Object
Execute a block with meta data, returning self.
Instance Method Details
#meta_data ⇒ Object
Get the meta_data for an object
11 12 13 |
# File 'lib/key_tree/meta_data.rb', line 11 def @meta_data ||= KeyTree::Tree.new end |
#with_meta_data {|meta_data| ... } ⇒ Object
Execute a block with meta data, returning self
17 18 19 20 |
# File 'lib/key_tree/meta_data.rb', line 17 def yield() self end |