Module: Blocks::Configurator::ClassMethods
- Defined in:
- lib/blocks/utilities/configurator.rb
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/blocks/utilities/configurator.rb', line 41 def configure yield self self.track_caller = true if lookup_caller_location if track_caller HashWithRenderStrategy.send(:prepend, HashWithCaller) end end |
#reset_config ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/blocks/utilities/configurator.rb', line 29 def reset_config configure do |config| config.builder_class = Builder config.renderer_class = Renderer config.lookup_caller_location = false config.track_caller = false config. = nil config. = false config.collection_item_passed_to_block_as_first_arg = false end end |