Class: Flatware::Cucumber::Config
- Inherits:
-
Object
- Object
- Flatware::Cucumber::Config
- Defined in:
- lib/flatware/cucumber.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #feature_dir ⇒ Object
-
#initialize(cucumber_config, args) ⇒ Config
constructor
A new instance of Config.
- #jobs ⇒ Object
Constructor Details
#initialize(cucumber_config, args) ⇒ Config
Returns a new instance of Config.
13 14 15 |
# File 'lib/flatware/cucumber.rb', line 13 def initialize(cucumber_config, args) @config, @args = cucumber_config, args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
12 13 14 |
# File 'lib/flatware/cucumber.rb', line 12 def args @args end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
12 13 14 |
# File 'lib/flatware/cucumber.rb', line 12 def config @config end |
Instance Method Details
#feature_dir ⇒ Object
17 18 19 |
# File 'lib/flatware/cucumber.rb', line 17 def feature_dir @config.feature_dirs.first end |
#jobs ⇒ Object
21 22 23 |
# File 'lib/flatware/cucumber.rb', line 21 def jobs feature_files.map { |file| Job.new file, args }.to_a end |