Class: TestProf::RSpecStamp::Configuration
- Inherits:
-
Object
- Object
- TestProf::RSpecStamp::Configuration
- Defined in:
- lib/test_prof/rspec_stamp.rb
Overview
RSpecStamp configuration
Instance Attribute Summary collapse
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#ignore_files ⇒ Object
Returns the value of attribute ignore_files.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
- #dry_run? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 |
# File 'lib/test_prof/rspec_stamp.rb', line 16 def initialize @ignore_files = [%r{spec/support}] @dry_run = ENV['RSTAMP_DRY_RUN'] == '1' self. = ENV['RSTAMP'] end |
Instance Attribute Details
#dry_run ⇒ Object
Returns the value of attribute dry_run.
14 15 16 |
# File 'lib/test_prof/rspec_stamp.rb', line 14 def dry_run @dry_run end |
#ignore_files ⇒ Object
Returns the value of attribute ignore_files.
14 15 16 |
# File 'lib/test_prof/rspec_stamp.rb', line 14 def ignore_files @ignore_files end |
#tags ⇒ Object
Returns the value of attribute tags.
13 14 15 |
# File 'lib/test_prof/rspec_stamp.rb', line 13 def @tags end |
Instance Method Details
#dry_run? ⇒ Boolean
22 23 24 |
# File 'lib/test_prof/rspec_stamp.rb', line 22 def dry_run? @dry_run == true end |