Class: Clomp::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/clomp/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_namesObject

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_fastObject

Returns the value of attribute fail_fast.



3
4
5
# File 'lib/clomp/configuration.rb', line 3

def fail_fast
  @fail_fast
end

#optionalObject

Returns the value of attribute optional.



3
4
5
# File 'lib/clomp/configuration.rb', line 3

def optional
  @optional
end

#pass_fastObject

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

Yields:



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