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
17 18 19 20 21 |
# File 'lib/test_prof/rspec_stamp.rb', line 17 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.
15 16 17 |
# File 'lib/test_prof/rspec_stamp.rb', line 15 def dry_run @dry_run end |
#ignore_files ⇒ Object
Returns the value of attribute ignore_files.
15 16 17 |
# File 'lib/test_prof/rspec_stamp.rb', line 15 def ignore_files @ignore_files end |
#tags ⇒ Object
Returns the value of attribute tags.
14 15 16 |
# File 'lib/test_prof/rspec_stamp.rb', line 14 def end |
Instance Method Details
#dry_run? ⇒ Boolean
23 24 25 |
# File 'lib/test_prof/rspec_stamp.rb', line 23 def dry_run? @dry_run == true end |