Class: Transpec::Configuration
- Inherits:
-
Object
- Object
- Transpec::Configuration
- Defined in:
- lib/transpec/configuration.rb
Constant Summary collapse
- NEGATIVE_FORMS_OF_TO =
['not_to', 'to_not'].freeze
- PREDICATES =
[ [:convert_should, true], [:convert_should_receive, true], [:convert_stub, true], [:convert_have_items, true], [:convert_deprecated_method, true], [:parenthesize_matcher_arg, true], [:forced, false], [:skip_dynamic_analysis, false], [:generate_commit_message, false] ].freeze
Instance Attribute Summary collapse
-
#negative_form_of_to ⇒ Object
Returns the value of attribute negative_form_of_to.
-
#rspec_command ⇒ Object
Returns the value of attribute rspec_command.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
26 27 28 29 30 31 32 |
# File 'lib/transpec/configuration.rb', line 26 def initialize PREDICATES.each do |predicate, default_value| instance_variable_set('@' + predicate.to_s, default_value) end self.negative_form_of_to = 'not_to' end |
Instance Attribute Details
#negative_form_of_to ⇒ Object
Returns the value of attribute negative_form_of_to.
24 25 26 |
# File 'lib/transpec/configuration.rb', line 24 def negative_form_of_to @negative_form_of_to end |
#rspec_command ⇒ Object
Returns the value of attribute rspec_command.
24 25 26 |
# File 'lib/transpec/configuration.rb', line 24 def rspec_command @rspec_command end |