Ameba::GlobUtils - ameba 1.7.0

# module Ameba::GlobUtils

##
Overview

Helper module that utilizes helpers for working with globs.

##
Extended Modules

- Ameba::GlobUtils

##
Direct including types

- Ameba::Config

##
Defined in:

ameba/glob_utils.cr

##
Instance Method Summary

- #expand(globs, root = Dir.current)

  Expands globs.

- #find_files_by_globs(globs, root = Dir.current)

  Returns all files that match specified globs.

##
Instance Method Detail

def expand(globs, root = Dir.current) #

Expands globs. Globs can point to files or even directories.

    expand(["spec/*.cr", "src"]) # => all files in src folder + first level specs

def find_files_by_globs(globs, root = Dir.current) #

Returns all files that match specified globs. Globs can have wildcards or be rejected:

    find_files_by_globs(["**/*.cr", "!lib"])