Module: Alf::Lang::Aggregators

Defined in:
lib/alf/lang/aggregators.rb

Class Method Summary collapse

Class Method Details

.def_aggregator_method(name, clazz) ⇒ Object


6
7
8
9
10
# File 'lib/alf/lang/aggregators.rb', line 6

def def_aggregator_method(name, clazz)
  define_method(name) do |*args, &block|
    clazz.new(*args, &block)
  end
end