Class: CucumberLint::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber_lint/config.rb

Overview

A configuration for executing cucumber_lint

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fixObject (readonly)

Returns the value of attribute fix.



7
8
9
# File 'lib/cucumber_lint/config.rb', line 7

def fix
  @fix
end