Class: CC::Yaml::Nodes::Root
- Defined in:
- lib/cc/yaml/nodes/root.rb
Constant Summary
Constants inherited from Mapping
Mapping::INCOMPATIBLE_KEYS_WARNING
Instance Attribute Summary collapse
-
#parseable ⇒ Object
(also: #parseable?)
Returns the value of attribute parseable.
Attributes inherited from Mapping
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize ⇒ Root
constructor
A new instance of Root.
- #inspect ⇒ Object
- #nested_warnings ⇒ Object
Methods inherited from Mapping
#==, #[], #[]=, #accept_key?, aliases, #deep_verify, define_map_accessor, #each_scalar, #empty?, #include?, map, #mapped_key, mapping, prefix_scalar, #prepare, required, #set_warnings, #subnode_for, subnode_for_key, #verify, #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?, #method_missing, #nested_warning, #prepare, #respond_to_missing?, #to_s, #verify, #visit_child, #visit_mapping, #visit_pair, #visit_scalar, #visit_sequence, #visit_unexpected, #warning, #warnings, #warnings?, #with_value
Constructor Details
#initialize ⇒ Root
Returns a new instance of Root.
18 19 20 21 |
# File 'lib/cc/yaml/nodes/root.rb', line 18 def initialize super(nil) @parseable = true end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CC::Yaml::Nodes::Node
Instance Attribute Details
#parseable ⇒ Object Also known as: parseable?
Returns the value of attribute parseable.
15 16 17 |
# File 'lib/cc/yaml/nodes/root.rb', line 15 def parseable @parseable end |
Instance Method Details
#inspect ⇒ Object
27 28 29 |
# File 'lib/cc/yaml/nodes/root.rb', line 27 def inspect "#<#{self.class.name}:#{super}>" end |
#nested_warnings ⇒ Object
23 24 25 |
# File 'lib/cc/yaml/nodes/root.rb', line 23 def nested_warnings(*) super.uniq end |