class

AmebaLS::Config

Inherits Ameba::Config < Ameba::GlobUtils < Reference < Object

Instance methods

sources

Returns a list of sources matching globs and excluded sections.

config = Ameba::Config.load
config.sources # => list of default sources
config.globs = Set{"**/*.cr", "**/*.ecr"}
config.excluded = Set{"spec"}
config.sources # => list of sources pointing to files found by the wildcards
Source
sources=(sources : Array(Ameba::Source))
Source