module FlightConfig::Globber::ClassMethods

Public Instance Methods

glob_read(*a, registry: nil) click to toggle source
# File lib/flight_config/globber.rb, line 63
def glob_read(*a, registry: nil)
  matcher = Globber::Matcher.new(self, a.length, registry)
  glob_regex = self.new(*a).path
  Dir.glob(glob_regex)
     .map { |path| matcher.read(path) }
end