Module: DeprecationToolkit::Configuration

Defined in:
lib/deprecation_toolkit/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allowed_deprecationsObject

Returns the value of attribute allowed_deprecations.



6
7
8
# File 'lib/deprecation_toolkit/configuration.rb', line 6

def allowed_deprecations
  @allowed_deprecations
end

#attach_toObject

Returns the value of attribute attach_to.



9
10
11
# File 'lib/deprecation_toolkit/configuration.rb', line 9

def attach_to
  @attach_to
end

#behaviorObject

Returns the value of attribute behavior.



12
13
14
# File 'lib/deprecation_toolkit/configuration.rb', line 12

def behavior
  @behavior
end

#deprecation_file_path_formatObject

Returns the value of attribute deprecation_file_path_format.



30
31
32
# File 'lib/deprecation_toolkit/configuration.rb', line 30

def deprecation_file_path_format
  @deprecation_file_path_format
end

#deprecation_pathObject

Returns the value of attribute deprecation_path.



15
16
17
# File 'lib/deprecation_toolkit/configuration.rb', line 15

def deprecation_path
  @deprecation_path
end

#test_runnerObject

Returns the value of attribute test_runner.



18
19
20
# File 'lib/deprecation_toolkit/configuration.rb', line 18

def test_runner
  @test_runner
end

#warnings_treated_as_deprecationObject

Returns the value of attribute warnings_treated_as_deprecation.



21
22
23
# File 'lib/deprecation_toolkit/configuration.rb', line 21

def warnings_treated_as_deprecation
  @warnings_treated_as_deprecation
end

Class Method Details

.configObject



37
38
39
# File 'lib/deprecation_toolkit/configuration.rb', line 37

def config
  self
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



33
34
35
# File 'lib/deprecation_toolkit/configuration.rb', line 33

def configure
  yield self
end