Class: Heytmux::PaneActions::Paste
- Inherits:
-
Heytmux::PaneAction
- Object
- Heytmux::PaneAction
- Heytmux::PaneActions::Paste
- Defined in:
- lib/heytmux/pane_actions/paste.rb
Overview
Waits for a certain regular expression pattern appears
Instance Method Summary collapse
Methods inherited from Heytmux::PaneAction
Instance Method Details
#process(window_index, pane_index, body) ⇒ Object
16 17 18 |
# File 'lib/heytmux/pane_actions/paste.rb', line 16 def process(window_index, pane_index, body) Tmux.paste(window_index, pane_index, yield(body)) end |
#validate(body) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/heytmux/pane_actions/paste.rb', line 9 def validate(body) case body when Hash, Array raise ArgumentError, "Invalid command: #{body}" end end |