Class: Travis::Yaml::Nodes::OpenMapping
- Defined in:
- lib/travis/yaml/nodes/open_mapping.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Mapping
Attributes inherited from Node
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Mapping
#==, #[], #[]=, aliases, auto_prefix, #deep_verify, define_map_accessor, drop_empty, #drop_empty?, #each_scalar, #empty?, experimental, #include?, #inspect, map, #mapped_key, mapping, #nested_warnings, prefix_scalar, prefix_sequence, #prepare, required, #subnode_for, #verify, #verify_empty, #verify_errors, #verify_experimental, #verify_required, #visit_key_value, #visit_mapping, #visit_pair, #with_value!
Methods inherited from Node
#decrypt, #decrypted?, #deep_verify, #dup, #encrypt, #encrypted?, #error, #errors, #errors?, has_default?, #initialize, #method_missing, #nested_warning, #nested_warnings, #prepare, #respond_to_missing?, #serialize, #to_json, #to_legacy_ruby, #to_ruby, #to_s, #to_yaml, #verify, #verify_language, #visit_child, #visit_mapping, #visit_pair, #visit_scalar, #visit_sequence, #visit_unexpected, #warngings?, #warning, #warnings, #with_value
Constructor Details
This class inherits a constructor from Travis::Yaml::Nodes::Node
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Travis::Yaml::Nodes::Node
Class Method Details
.default_type(identifier = nil) ⇒ Object
4 5 6 7 |
# File 'lib/travis/yaml/nodes/open_mapping.rb', line 4 def self.default_type(identifier = nil) @default_type = Nodes[identifier] if identifier @default_type ||= superclass.respond_to?(:default_type) ? superclass.default_type : Scalar end |
.subnode_for(key) ⇒ Object
9 10 11 |
# File 'lib/travis/yaml/nodes/open_mapping.rb', line 9 def self.subnode_for(key) super(key) || default_type end |
Instance Method Details
#accept_key?(key) ⇒ Boolean
13 14 15 |
# File 'lib/travis/yaml/nodes/open_mapping.rb', line 13 def accept_key?(key) key != 'secure' end |