Class: Ace::Docs::Atoms::FrontmatterFreeMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/ace/docs/atoms/frontmatter_free_matcher.rb

Overview

Matches markdown files that are managed without frontmatter.

Class Method Summary collapse

Class Method Details

.match?(path, patterns:, project_root: Dir.pwd) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
14
15
16
# File 'lib/ace/docs/atoms/frontmatter_free_matcher.rb', line 10

def self.match?(path, patterns:, project_root: Dir.pwd)
  Ace::Core::Molecules::FrontmatterFreePolicy.match?(
    path,
    patterns: patterns,
    project_root: project_root
  )
end