Module: Space::Shell::Watcher
- Included in:
- Space::Shell
- Defined in:
- lib/space/shell/watcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.suspend ⇒ Object
5 6 7 8 9 10 |
# File 'lib/space/shell/watcher.rb', line 5 def suspend @suspended = true yield.tap do @suspended = false end end |
.suspended? ⇒ Boolean
12 13 14 |
# File 'lib/space/shell/watcher.rb', line 12 def suspended? !!@suspended end |
Instance Method Details
#initialize(*args) ⇒ Object
17 18 19 |
# File 'lib/space/shell/watcher.rb', line 17 def initialize(*args) watch end |