Module: Alf::Lang::ObjectOriented::AggregationMethods
- Included in:
- Alf::Lang::ObjectOriented
- Defined in:
- lib/alf-lang/alf/lang/oo/aggregation_methods.rb
Class Method Summary collapse
Class Method Details
.def_aggregator_method(name, clazz) ⇒ Object
6 7 8 9 10 |
# File 'lib/alf-lang/alf/lang/oo/aggregation_methods.rb', line 6 def self.def_aggregator_method(name, clazz) define_method(name) do |*args, &block| clazz.new(*args, &block).aggregate(_self_operand) end end |