Class: KTextEditor::Cursor
Instance Method Summary (collapse)
-
- (Boolean) ==(other)
Override of
Object#==
. -
- (Cursor) clone
Override of
Object#clone
. -
- (Cursor) dup
Override of
Object#dup
. -
- (String) inspect
Override of
Object#inspect
.
Instance Method Details
- (Boolean) ==(other)
Override of Object#==
48 49 50 51 |
# File 'lib/ruber/ktexteditor_sugar.rb', line 48 def == other return false unless other.is_a? KTextEditor::Cursor line == other.line and column == other.column end |
- (Cursor) clone
Override of Object#clone
67 68 69 70 71 |
# File 'lib/ruber/ktexteditor_sugar.rb', line 67 def clone res = dup res.freeze if self.frozen? res end |
- (Cursor) dup
Override of Object#dup
58 59 60 |
# File 'lib/ruber/ktexteditor_sugar.rb', line 58 def dup self.class.new self.line, self.column end |
- (String) inspect
Override of Object#inspect
34 35 36 37 38 39 |
# File 'lib/ruber/ktexteditor_sugar.rb', line 34 def inspect if !disposed? "<#{self.class}:#{object_id} line=#{line} column=#{column}>" else "<#{self.class}:#{object_id} DISPOSED>" end end |