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
24 25 26 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 24 def end_index @end_index end |
#replacement_cursor_offset ⇒ Object
Returns the value of attribute replacement_cursor_offset
24 25 26 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 24 def replacement_cursor_offset @replacement_cursor_offset end |
#replacement_text ⇒ Object
Returns the value of attribute replacement_text
24 25 26 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 24 def replacement_text @replacement_text end |
#start_index ⇒ Object
Returns the value of attribute start_index
24 25 26 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 24 def start_index @start_index end |
#type ⇒ Object
Returns the value of attribute type
24 25 26 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 24 def type @type end |
Instance Method Details
#change_cursor_index ⇒ Object
33 34 35 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 33 def change_cursor_index start_index + replacement_cursor_offset.to_i end |
#change_replacement_text ⇒ Object
29 30 31 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 29 def change_replacement_text replacement_text.to_s end |
#characterwise? ⇒ Boolean
25 26 27 |
# File 'lib/kward/prompt_interface/editor/modes/vibe.rb', line 25 def characterwise? type == :characterwise end |