class Devtools::Flay::FileList

Expand include and exclude file settings for flay

Constants

GLOB

Public Instance Methods

call() click to toggle source

Expand includes and filter by excludes

@return [Set<Pathname>]

@api private

# File lib/devtools/flay.rb, line 58
def call
  include_set - exclude_set
end

Private Instance Methods

exclude_set() click to toggle source

Set of excluded files

@return [Set<Pathname>]

@api private

# File lib/devtools/flay.rb, line 69
def exclude_set
  excludes.flat_map(&Pathname.method(:glob))
end
flay_includes() click to toggle source

Expand includes using flay

Expanded using flay's file expander which takes into account flay's plugin support

@return [Array<String>]

@api private

# File lib/devtools/flay.rb, line 93
def flay_includes
  PathExpander.new(includes.dup, GLOB).process
end
include_set() click to toggle source

Set of included files

Expanded using flay's file expander which takes into account flay's plugin support

@return [Set<Pathname>]

@api private

# File lib/devtools/flay.rb, line 81
def include_set
  Set.new(flay_includes.map(&method(:Pathname)))
end