Class: Flatter::Extension::Mapping

Inherits:
Builder
  • Object
show all
Defined in:
lib/flatter/extension/mapping.rb

Constant Summary

Constants inherited from Builder

Builder::ExtensionBlockAlreadyDefined

Instance Method Summary collapse

Methods inherited from Builder

#add_option, #extend, extends, #extends?, #initialize, target_name

Constructor Details

This class inherits a constructor from Flatter::Extension::Builder

Instance Method Details

#extend!Object



5
6
7
8
9
10
# File 'lib/flatter/extension/mapping.rb', line 5

def extend!
  fail_if_options_defined!

  ::Flatter::Mapper.mapping_options.concat @new_options
  ::Flatter::Mapping.send(:prepend, extension) if extends?
end