Class: Juvet::Configuration::Mapping

Inherits:
Object
  • Object
show all
Defined in:
lib/juvet/configuration/mapping.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Mapping



6
7
8
# File 'lib/juvet/configuration/mapping.rb', line 6

def initialize(&block)
  @block = block
end

Instance Method Details

#buildObject



10
11
12
# File 'lib/juvet/configuration/mapping.rb', line 10

def build
  Juvet::Mapper.new &@block
end