Module: DataMapper::Chainable
- Included in:
- Adapters, Adapters::DataObjectsAdapter, Associations::ManyToMany::Relationship, Model, Model::Property, Model::Relationship, Resource, Transaction, Transaction::Adapter
- Defined in:
- lib/dm-core/support/chainable.rb
Instance Method Summary collapse
-
#chainable(&block) ⇒ Object
private
TODO: document.
-
#extendable(&block) ⇒ Object
private
TODO: document.
Instance Method Details
#chainable(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
TODO: document
6 7 8 9 10 |
# File 'lib/dm-core/support/chainable.rb', line 6 def chainable(&block) mod = Module.new(&block) include mod mod end |
#extendable(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
TODO: document
14 15 16 17 18 |
# File 'lib/dm-core/support/chainable.rb', line 14 def extendable(&block) mod = Module.new(&block) extend mod mod end |