Module: SynthesizerFactory
- Defined in:
- lib/abstract-synthesizer.rb
Class Method Summary collapse
Class Method Details
.create_synthesizer(name:, keys:) ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/abstract-synthesizer.rb', line 111 def create_synthesizer(name:, keys:) synth = AbstractSynthesizer.new(name: name) synth.define_singleton_method(:method_missing) do |method_name, *args, &block| abstract_method_missing( method_name, keys, *args, &block ) end synth end |