class Interval
Attributes
end[RW]
start[RW]
Public Class Methods
new(s = 0, e = 0)
click to toggle source
# File lib/leetcode_rb/utils/interval.rb, line 4 def initialize(s = 0, e = 0) @start = s @end = e end
Public Instance Methods
==(other)
click to toggle source
# File lib/leetcode_rb/utils/interval.rb, line 9 def ==(other) return self.start == other.start && self.end == other.end end