Class: CC::Yaml::Nodes::EngineList
- Inherits:
-
OpenMapping
- Object
- Node
- Mapping
- OpenMapping
- CC::Yaml::Nodes::EngineList
- Defined in:
- lib/cc/yaml/nodes/engine_list.rb
Constant Summary collapse
- GENERIC_ERROR_MESSAGE =
"The engines key should be a mapping from engine name to engine config.".freeze
- EMPTY_ERROR_MESSAGE =
"The engines key cannot be empty.".freeze
Constants inherited from Mapping
Mapping::INCOMPATIBLE_KEYS_WARNING
Instance Attribute Summary
Attributes inherited from Mapping
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from OpenMapping
#accept_key?, default_type, #subnode_for
Methods inherited from Mapping
#==, #[], #[]=, #accept_key?, aliases, #deep_verify, define_map_accessor, #each_scalar, #empty?, #include?, #inspect, map, #mapped_key, mapping, #nested_warnings, prefix_scalar, #prepare, required, #set_warnings, #subnode_for, subnode_for_key, #verify_errors, #verify_required, #visit_key_value, #visit_mapping, #visit_pair, #with_value!
Methods inherited from Node
#as_json, #deep_verify, #dup, #error, #errors, #errors?, has_default?, #initialize, #method_missing, #nested_warning, #nested_warnings, #prepare, #respond_to_missing?, #to_s, #visit_child, #visit_mapping, #visit_pair, #visit_scalar, #visit_sequence, #warning, #warnings, #warnings?, #with_value
Constructor Details
This class inherits a constructor from CC::Yaml::Nodes::Node
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CC::Yaml::Nodes::Node
Instance Method Details
#verify ⇒ Object
10 11 12 13 |
# File 'lib/cc/yaml/nodes/engine_list.rb', line 10 def verify super verify_not_empty end |
#visit_unexpected(_visitor, _value, message = nil) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/cc/yaml/nodes/engine_list.rb', line 15 def visit_unexpected(_visitor, _value, = nil) if = << ". #{GENERIC_ERROR_MESSAGE}" else = GENERIC_ERROR_MESSAGE end error() end |