Class: Rosette::Core::PathMatcherFactory::Node

Inherits:
Object
  • Object
show all
Includes:
NodeFactory, NodeOperatorFactory
Defined in:
lib/rosette/core/path_matcher_factory.rb

Overview

The base class for all condition nodes.

Instance Method Summary collapse

Methods included from NodeOperatorFactory

#and, #not, #or

Methods included from NodeFactory

#match_file_extension, #match_file_extensions, #match_path, #match_paths, #match_regex, #match_regexes

Instance Method Details

#matches?(path) ⇒ Boolean

Determines if the given path matches the conditions defined by this node and it’s children.

Parameters:

  • path (String)

    The path to match.

Returns:

  • (Boolean)

    true if path matches, false otherwise.



133
134
135
# File 'lib/rosette/core/path_matcher_factory.rb', line 133

def matches?(path)
  false
end