Class: Magicka::Helper::MethodBuilder Private
- Inherits:
-
Sinclair
- Object
- Sinclair
- Magicka::Helper::MethodBuilder
- Defined in:
- lib/magicka/helper/method_builder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Builds methods for Magicka::Helper
Instance Method Summary collapse
-
#build_aggregator ⇒ Array<MethodDefinition>
private
Build aggregator helper method.
Instance Method Details
#build_aggregator ⇒ Array<MethodDefinition>
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.
Build aggregator helper method
12 13 14 15 16 17 18 |
# File 'lib/magicka/helper/method_builder.rb', line 12 def build_aggregator opts = add_method("magicka_#{opts.type}") do |model, &block| block.call(opts.configured_aggregator.new(self, model)) end end |