Class: Charming::Events::PasteEvent
- Inherits:
-
Data
- Object
- Data
- Charming::Events::PasteEvent
- Defined in:
- lib/charming/events/paste_event.rb
Overview
PasteEvent carries text pasted via the terminal’s bracketed-paste mode (‘e[200~ … e[201~`). Without bracketed paste, pasted text arrives as a storm of individual key events; with it, components receive the whole string at once via `handle_paste`.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text
9 10 11 |
# File 'lib/charming/events/paste_event.rb', line 9 def text @text end |