Module: SynthesizerFactory
- Defined in:
- lib/abstract-synthesizer.rb
Class Method Summary collapse
Class Method Details
.create_synthesizer(name:, keys:) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/abstract-synthesizer.rb', line 106 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 |