Class: CC::Yaml::Nodes::Glob
- Defined in:
- lib/cc/yaml/nodes/glob.rb
Instance Attribute Summary
Attributes inherited from Node
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
#as_json, #deep_verify, #dup, #error, #errors, #errors?, has_default?, #initialize, #method_missing, #nested_warning, #nested_warnings, #prepare, #respond_to_missing?, #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
#to_s ⇒ Object
5 6 7 |
# File 'lib/cc/yaml/nodes/glob.rb', line 5 def to_s value end |
#value ⇒ Object
9 10 11 12 |
# File 'lib/cc/yaml/nodes/glob.rb', line 9 def value # normalize glob format: app/** => app/**/* and **.rb => **/*.rb @value && @value.sub(%r{\*\*([^\/]*)?$}, "**/*\\1") end |