Method: KTextEditor::Range#==

Defined in:
lib/ruber/ktexteditor_sugar.rb

#==(other) ⇒ Boolean

Override of @Object#==@

Parameters:

  • other (Object)

    the object to compare with self

Returns:

  • (Boolean)

    true if other is a @KTextEditor::Range@ with the same start and end and false otherwise


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