Class: Travis::Yaml::Nodes::Root
- Includes:
- LanguageSpecific
- Defined in:
- lib/travis/yaml/nodes/root.rb
Direct Known Subclasses
Constant Summary
Constants included from LanguageSpecific
LanguageSpecific::LANGUAGE_SPECIFIC
Instance Attribute Summary
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
- #verify ⇒ Object
- #verify_os ⇒ Object
Methods included from LanguageSpecific
Methods inherited from Mapping
#==, #[], #[]=, #accept_key?, aliases, auto_prefix, #deep_verify, define_map_accessor, drop_empty, #drop_empty?, #empty?, experimental, #include?, map, #mapped_key, mapping, prefix_scalar, prefix_sequence, #prepare, required, subnode_for, #subnode_for, #verify_empty, #verify_errors, #verify_experimental, #verify_required, #visit_key_value, #visit_mapping, #visit_pair
Methods inherited from Node
#deep_verify, #error, #errors, #errors?, has_default?, #method_missing, #nested_warning, #prepare, #respond_to_missing?, #to_s, #verify_language, #visit_child, #visit_mapping, #visit_pair, #visit_scalar, #visit_sequence, #visit_unexpected, #warngings?, #warning, #warnings
Constructor Details
#initialize ⇒ Root
Returns a new instance of Root.
21 22 23 |
# File 'lib/travis/yaml/nodes/root.rb', line 21 def initialize super(nil) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Travis::Yaml::Nodes::Node
Instance Method Details
#inspect ⇒ Object
39 40 41 |
# File 'lib/travis/yaml/nodes/root.rb', line 39 def inspect "#<Travis::Yaml:#{super}>" end |
#nested_warnings ⇒ Object
35 36 37 |
# File 'lib/travis/yaml/nodes/root.rb', line 35 def nested_warnings(*) super.uniq end |
#verify ⇒ Object
25 26 27 28 29 |
# File 'lib/travis/yaml/nodes/root.rb', line 25 def verify super verify_os verify_language(language) end |
#verify_os ⇒ Object
31 32 33 |
# File 'lib/travis/yaml/nodes/root.rb', line 31 def verify_os self.os = language.default_os unless include? :os end |