Class: Clomp::Configuration
- Inherits:
-
Object
- Object
- Clomp::Configuration
- Defined in:
- lib/clomp/configuration.rb
Instance Attribute Summary collapse
-
#custom_step_names ⇒ Object
Returns the value of attribute custom_step_names.
-
#fail_fast ⇒ Object
Returns the value of attribute fail_fast.
-
#optional ⇒ Object
Returns the value of attribute optional.
-
#pass_fast ⇒ Object
Returns the value of attribute pass_fast.
Class Method Summary collapse
-
.config {|@config| ... } ⇒ Object
(also: setup)
Self configuration.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Constructor for Configuration file.
Constructor Details
#initialize ⇒ Configuration
Constructor for Configuration file
6 7 8 9 10 11 |
# File 'lib/clomp/configuration.rb', line 6 def initialize @pass_fast = false @fail_fast = false @optional = false @custom_step_names = [:step, :set] end |
Instance Attribute Details
#custom_step_names ⇒ Object
Returns the value of attribute custom_step_names.
3 4 5 |
# File 'lib/clomp/configuration.rb', line 3 def custom_step_names @custom_step_names end |
#fail_fast ⇒ Object
Returns the value of attribute fail_fast.
3 4 5 |
# File 'lib/clomp/configuration.rb', line 3 def fail_fast @fail_fast end |
#optional ⇒ Object
Returns the value of attribute optional.
3 4 5 |
# File 'lib/clomp/configuration.rb', line 3 def optional @optional end |
#pass_fast ⇒ Object
Returns the value of attribute pass_fast.
3 4 5 |
# File 'lib/clomp/configuration.rb', line 3 def pass_fast @pass_fast end |
Class Method Details
.config {|@config| ... } ⇒ Object Also known as: setup
Self configuration
15 16 17 18 19 20 21 |
# File 'lib/clomp/configuration.rb', line 15 def config @config ||= new yield(@config) if block_given? @config end |