Class: CucumberLint::Config
- Inherits:
-
Object
- Object
- CucumberLint::Config
- Defined in:
- lib/cucumber_lint/config.rb
Overview
A configuration for executing cucumber_lint
Instance Attribute Summary collapse
-
#fix ⇒ Object
readonly
Returns the value of attribute fix.
Instance Method Summary collapse
-
#initialize(dir:, fix:) ⇒ Config
constructor
A new instance of Config.
- #method_missing(method) ⇒ Object
Constructor Details
#initialize(dir:, fix:) ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 |
# File 'lib/cucumber_lint/config.rb', line 9 def initialize dir:, fix: @dir = dir @fix = fix @options = parse_config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
16 17 18 |
# File 'lib/cucumber_lint/config.rb', line 16 def method_missing method @options.send(method) end |
Instance Attribute Details
#fix ⇒ Object (readonly)
Returns the value of attribute fix.
7 8 9 |
# File 'lib/cucumber_lint/config.rb', line 7 def fix @fix end |