Method: KTextEditor::Range#inspect

Defined in:
lib/ruber/ktexteditor_sugar.rb

#inspectString

Override of @Object#inspect@

Returns:

  • (String)

    a string representation of the cursor which displays the start and end line and column



83
84
85
86
87
88
# File 'lib/ruber/ktexteditor_sugar.rb', line 83

def inspect
  return "<#{self.class}:#{object_id} DISPOSED>" if disposed?
  start_c = self.start
  end_c = self.end
  "<#{self.class}:#{object_id} start=(#{start_c.line};#{start_c.column}) end=(#{end_c.line};#{end_c.column})>"
end