Method: ItermWindow::Tab#execute_block
- Defined in:
- lib/iterm_window.rb
#execute_block(&block) ⇒ Object
Runs a block on this tab with proper opening and closing statements
198 199 200 201 202 203 204 |
# File 'lib/iterm_window.rb', line 198 def execute_block(&block) @currently_executing_block = true output "tell session id #{name}_tty" self.instance_eval(&block) output "end tell" @currently_executing_block = false end |