Class: KTextEditor::Cursor
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Override of @Object#==@.
-
#clone ⇒ Cursor
Override of @Object#clone@.
-
#dup ⇒ Cursor
Override of @Object#dup@.
-
#inspect ⇒ String
Override of @Object#inspect@.
Instance Method Details
#==(other) ⇒ Boolean
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 |
#clone ⇒ Cursor
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 |
#dup ⇒ Cursor
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 |
#inspect ⇒ String
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 |