Class: RSpec::Interactive::Configuration
- Inherits:
-
Object
- Object
- RSpec::Interactive::Configuration
- Defined in:
- lib/rspec-interactive/config.rb
Instance Attribute Summary collapse
-
#configure_rspec(&block) ⇒ Object
Returns the value of attribute configure_rspec.
-
#on_class_load(&block) ⇒ Object
Returns the value of attribute on_class_load.
-
#refresh(&block) ⇒ Object
Returns the value of attribute refresh.
-
#watch_dirs ⇒ Object
Returns the value of attribute watch_dirs.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 |
# File 'lib/rspec-interactive/config.rb', line 6 def initialize @watch_dirs = [] @configure_rspec = proc {} @on_class_load = proc {} @refresh = proc {} end |
Instance Attribute Details
#configure_rspec(&block) ⇒ Object
Returns the value of attribute configure_rspec.
4 5 6 |
# File 'lib/rspec-interactive/config.rb', line 4 def configure_rspec @configure_rspec end |
#on_class_load(&block) ⇒ Object
Returns the value of attribute on_class_load.
4 5 6 |
# File 'lib/rspec-interactive/config.rb', line 4 def on_class_load @on_class_load end |
#refresh(&block) ⇒ Object
Returns the value of attribute refresh.
4 5 6 |
# File 'lib/rspec-interactive/config.rb', line 4 def refresh @refresh end |
#watch_dirs ⇒ Object
Returns the value of attribute watch_dirs.
4 5 6 |
# File 'lib/rspec-interactive/config.rb', line 4 def watch_dirs @watch_dirs end |