Module: FlightConfig::Globber::ClassMethods

Included in:
Links::ClassMethods
Defined in:
lib/flight_config/globber.rb

Instance Method Summary collapse

Instance Method Details

#glob_read(*a, registry: nil) ⇒ Object



63
64
65
66
67
68
# 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