Class: KTextEditor::Range
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Override of @Object#==@.
-
#clone ⇒ Range
Override of @Object#clone@.
-
#dup ⇒ Range
Override of @Object#dup@.
-
#inspect ⇒ String
Override of @Object#inspect@.
Instance Method Details
#==(other) ⇒ Boolean
Override of @Object#==@
97 98 99 100 |
# File 'lib/ruber/ktexteditor_sugar.rb', line 97 def == other return false unless other.is_a? KTextEditor::Range start == other.start and self.end == other.end end |
#clone ⇒ Range
Override of @Object#clone@
116 117 118 119 120 |
# File 'lib/ruber/ktexteditor_sugar.rb', line 116 def clone res = dup res.freeze if self.frozen? res end |
#dup ⇒ Range
Override of @Object#dup@
107 108 109 |
# File 'lib/ruber/ktexteditor_sugar.rb', line 107 def dup self.class.new self.start, self.end end |
#inspect ⇒ String
Override of @Object#inspect@
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 |