Class: CC::Yaml::Nodes::Glob

Inherits:
Scalar show all
Defined in:
lib/cc/yaml/nodes/glob.rb

Instance Attribute Summary

Attributes inherited from Scalar

#value

Attributes inherited from Node

#parent

Instance Method Summary collapse

Methods inherited from Scalar

#!@, #==, [], cast, #cast, #cast?, cast?, default, #default_type, default_type, #each_scalar, #empty?, has_default?, #inspect, #prepare, #visit_child, #visit_scalar, #visit_sequence, #with_value, #with_value!

Methods inherited from Node

#deep_verify, #dup, #error, #errors, #errors?, has_default?, #initialize, #method_missing, #nested_warning, #nested_warnings, #prepare, #respond_to_missing?, #to_json, #to_s, #verify, #visit_child, #visit_mapping, #visit_pair, #visit_scalar, #visit_sequence, #visit_unexpected, #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

#match?(path) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/cc/yaml/nodes/glob.rb', line 5

def match?(path)
  File.fnmatch(to_s, path)
end