Class: Mixboard::Source
- Inherits:
-
Object
- Object
- Mixboard::Source
- Includes:
- UtilityFunctions
- Defined in:
- app/mixer/mixboard/source.rb
Overview
A source is anything that emits signals of a certain type.
Instance Method Summary collapse
Methods included from UtilityFunctions
#assert_non_nil_of_type, #assert_type, #declare_abstract_method_body, #method_not_implemented_error
Instance Method Details
#emit(signal) ⇒ Object
12 13 14 15 |
# File 'app/mixer/mixboard/source.rb', line 12 def emit(signal) assert_non_nil_of_type(signal, signal_class) Mixer.instance.accept(signal, self) end |
#signal_class ⇒ Object
8 9 10 |
# File 'app/mixer/mixboard/source.rb', line 8 def signal_class declare_abstract_method_body end |