Class: TypoChecker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/typo_checker/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(paths: [], excludes: [], skips: [], stdoutput: true) ⇒ Configuration



5
6
7
8
9
10
# File 'lib/typo_checker/configuration.rb', line 5

def initialize(paths: [], excludes: [], skips: [], stdoutput: true)
  @paths = paths || []
  @excludes = excludes || []
  @skips = (skips || []).map(&:downcase)
  @stdoutput = stdoutput.nil? || stdoutput
end

Instance Attribute Details

#excludesObject (readonly)

Returns the value of attribute excludes.



3
4
5
# File 'lib/typo_checker/configuration.rb', line 3

def excludes
  @excludes
end

#pathsObject (readonly)

Returns the value of attribute paths.



3
4
5
# File 'lib/typo_checker/configuration.rb', line 3

def paths
  @paths
end

#skipsObject (readonly)

Returns the value of attribute skips.



3
4
5
# File 'lib/typo_checker/configuration.rb', line 3

def skips
  @skips
end

#stdoutputObject (readonly)

Returns the value of attribute stdoutput.



3
4
5
# File 'lib/typo_checker/configuration.rb', line 3

def stdoutput
  @stdoutput
end