class I18nLinter::Options

Attributes

files[W]
out_file[RW]

Public Class Methods

new(config) click to toggle source
# File lib/i18n_linter/options.rb, line 8
def initialize(config)
  @config = config
end

Public Instance Methods

files() click to toggle source
# File lib/i18n_linter/options.rb, line 12
def files
  return Dir[*@files].uniq.sort if @files

  supported_files.sort
end

Private Instance Methods

supported_files() click to toggle source
# File lib/i18n_linter/options.rb, line 20
def supported_files
  (Dir.glob(@config.patterns_to_include, 0) - Dir.glob(@config.patterns_to_exclude, 0)).uniq
end