Class: Object

Inherits:
BasicObject
Defined in:
lib/pry-wait_for_it.rb

Instance Method Summary collapse

Instance Method Details

#pry_wait_activateObject



11
12
13
14
15
# File 'lib/pry-wait_for_it.rb', line 11

def pry_wait_activate
  PryWaitForIt.state.make_true
  yield
  PryWaitForIt.state.make_false
end

#pry_wait_for_itObject



7
8
9
# File 'lib/pry-wait_for_it.rb', line 7

def pry_wait_for_it
  Pry.start(self, {}) if PryWaitForIt.state.true?
end