Class Methods
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 528
def initialize(line_editor, config, proc_to_exec, context)
@line_editor = line_editor
@config = config
@proc_to_exec = proc_to_exec
@context = context
@cursor_pos = Reline::CursorPos.new
end
No documentation available
Instance Methods
#
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 589
def call
instance_exec(&@proc_to_exec)
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 544
def call_completion_proc_with_checking_args(pre, target, post)
@line_editor.call_completion_proc_with_checking_args(pre, target, post)
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 581
def completion_journey_data
@line_editor.instance_variable_get(:@completion_journey_data)
end
No documentation available
#
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 585
def config
@config
end
No documentation available
#
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 536
def context
@context
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 569
def cursor_pos
@cursor_pos
end
No documentation available
#
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 552
def dialog
@dialog
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 573
def just_cursor_moving
@line_editor.instance_variable_get(:@just_cursor_moving)
end
No documentation available
#
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 565
def key
@key
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 540
def retrieve_completion_block(set_completion_quote_character = false)
@line_editor.retrieve_completion_block(set_completion_quote_character)
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 577
def screen_width
@line_editor.instance_variable_get(:@screen_size).last
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 556
def set_cursor_pos(col, row)
@cursor_pos.x = col
@cursor_pos.y = row
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 548
def set_dialog(dialog)
@dialog = dialog
end
No documentation available
lib/reline/line_editor.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/reline/line_editor.rb, line 561
def set_key(key)
@key = key
end
No documentation available