Class: Juvet::Configuration::Mapping
- Inherits:
-
Object
- Object
- Juvet::Configuration::Mapping
- Defined in:
- lib/juvet/configuration/mapping.rb
Instance Method Summary collapse
- #build(adapter) ⇒ Object
-
#initialize(&block) ⇒ Mapping
constructor
A new instance of Mapping.
Constructor Details
#initialize(&block) ⇒ Mapping
Returns a new instance of Mapping.
6 7 8 |
# File 'lib/juvet/configuration/mapping.rb', line 6 def initialize(&block) @block = block end |
Instance Method Details
#build(adapter) ⇒ Object
10 11 12 13 14 |
# File 'lib/juvet/configuration/mapping.rb', line 10 def build(adapter) mapper = Juvet::Mapper.new &@block mapper.build(adapter) mapper end |