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