Class: Kward::PromptInterface::VibeEditorMode::VibeOperatorTarget
- Inherits:
-
Struct
- Object
- Struct
- Kward::PromptInterface::VibeEditorMode::VibeOperatorTarget
- Defined in:
- lib/kward/prompt_interface/editor/modes/vibe.rb
Instance Attribute Summary collapse
-
#end_index ⇒ Object
Returns the value of attribute end_index.
-
#replacement_cursor_offset ⇒ Object
Returns the value of attribute replacement_cursor_offset.
-
#replacement_text ⇒ Object
Returns the value of attribute replacement_text.
-
#start_index ⇒ Object
Returns the value of attribute start_index.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#end_index ⇒ Object
Returns the value of attribute end_index
21 22 23 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 21 def end_index @end_index end |
#replacement_cursor_offset ⇒ Object
Returns the value of attribute replacement_cursor_offset
21 22 23 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 21 def replacement_cursor_offset @replacement_cursor_offset end |
#replacement_text ⇒ Object
Returns the value of attribute replacement_text
21 22 23 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 21 def replacement_text @replacement_text end |
#start_index ⇒ Object
Returns the value of attribute start_index
21 22 23 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 21 def start_index @start_index end |
#type ⇒ Object
Returns the value of attribute type
21 22 23 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 21 def type @type end |
Instance Method Details
#change_cursor_index ⇒ Object
30 31 32 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 30 def change_cursor_index start_index + replacement_cursor_offset.to_i end |
#change_replacement_text ⇒ Object
26 27 28 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 26 def change_replacement_text replacement_text.to_s end |
#characterwise? ⇒ Boolean
22 23 24 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 22 def characterwise? type == :characterwise end |