Class: Copland::Configuration::YAML::ListenerProcessor
- Inherits:
-
Object
- Object
- Copland::Configuration::YAML::ListenerProcessor
- Includes:
- TypeValidator
- Defined in:
- lib/copland/configuration/yaml/listener.rb
Overview
This delegate is responsible for processing an element the ‘listen-to’ construct.
Instance Method Summary collapse
-
#process(point, definition) ⇒ Object
Adds the given definition to the point as an event producer.
Methods included from TypeValidator
#ensure_element_type, #validate_elements
Instance Method Details
#process(point, definition) ⇒ Object
Adds the given definition to the point as an event producer. (See ServicePoint::add_event_producer.)
47 48 49 50 |
# File 'lib/copland/configuration/yaml/listener.rb', line 47 def process( point, definition ) ensure_element_type "listen-to-element", definition, String point.add_event_producer definition end |