Class: TypoChecker::Configuration
- Inherits:
-
Object
- Object
- TypoChecker::Configuration
- Defined in:
- lib/typo_checker/configuration.rb
Instance Attribute Summary collapse
-
#excludes ⇒ Object
readonly
Returns the value of attribute excludes.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#skips ⇒ Object
readonly
Returns the value of attribute skips.
-
#stdoutput ⇒ Object
readonly
Returns the value of attribute stdoutput.
Instance Method Summary collapse
-
#initialize(paths: [], excludes: [], skips: [], stdoutput: true) ⇒ Configuration
constructor
A new instance of Configuration.
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
#excludes ⇒ Object (readonly)
Returns the value of attribute excludes.
3 4 5 |
# File 'lib/typo_checker/configuration.rb', line 3 def excludes @excludes end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
3 4 5 |
# File 'lib/typo_checker/configuration.rb', line 3 def paths @paths end |
#skips ⇒ Object (readonly)
Returns the value of attribute skips.
3 4 5 |
# File 'lib/typo_checker/configuration.rb', line 3 def skips @skips end |
#stdoutput ⇒ Object (readonly)
Returns the value of attribute stdoutput.
3 4 5 |
# File 'lib/typo_checker/configuration.rb', line 3 def stdoutput @stdoutput end |