Class: Typocop::Settings
- Inherits:
-
Object
- Object
- Typocop::Settings
- Defined in:
- lib/typocop/settings.rb
Instance Attribute Summary collapse
-
#excludes ⇒ Object
readonly
Returns the value of attribute excludes.
-
#skips ⇒ Object
readonly
Returns the value of attribute skips.
Instance Method Summary collapse
-
#initialize(setting_path) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(setting_path) ⇒ Settings
Returns a new instance of Settings.
7 8 9 10 11 |
# File 'lib/typocop/settings.rb', line 7 def initialize(setting_path) @settings = load_settings(setting_path) @excludes = @settings['excludes'] || [] @skips = @settings['skips'] || [] end |
Instance Attribute Details
#excludes ⇒ Object (readonly)
Returns the value of attribute excludes.
5 6 7 |
# File 'lib/typocop/settings.rb', line 5 def excludes @excludes end |
#skips ⇒ Object (readonly)
Returns the value of attribute skips.
5 6 7 |
# File 'lib/typocop/settings.rb', line 5 def skips @skips end |