Sha256: 6c902832506350648e4d0652679bc92e69b5a28a0262f837075ded0275c9730c
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module Magicka module Helper # @api private # # Builds methods for {Magicka::Helper} class MethodBuilder < Sinclair # Build aggregator helper method # # @return [Array<MethodDefinition>] def build_aggregator opts = options add_method("magicka_#{opts.type}") do |model, &block| block.call(opts.configured_aggregator.new(self, model)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magicka-1.1.0 | lib/magicka/helper/method_builder.rb |