Class: RSpec::Interactive::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-interactive/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_dirsObject

Returns the value of attribute watch_dirs.



4
5
6
# File 'lib/rspec-interactive/config.rb', line 4

def watch_dirs
  @watch_dirs
end