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 16 |
# File 'lib/flatware/cucumber.rb', line 13 def initialize(cucumber_config, args) @config = cucumber_config @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
11 12 13 |
# File 'lib/flatware/cucumber.rb', line 11 def args @args end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
11 12 13 |
# File 'lib/flatware/cucumber.rb', line 11 def config @config end |
Instance Method Details
#feature_dir ⇒ Object
18 19 20 |
# File 'lib/flatware/cucumber.rb', line 18 def feature_dir @config.feature_dirs.first end |
#jobs ⇒ Object
22 23 24 |
# File 'lib/flatware/cucumber.rb', line 22 def jobs feature_files.map { |file| Job.new file, args }.to_a end |