class AmebaLS::Config

Defined in:

ameba-ls/ameba/config.cr

Instance Method Summary

Instance Method Detail

def sources : Array(Ameba::Source) #
Description copied from class Ameba::Config

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

def sources=(sources : Array(Ameba::Source)) #