Class: WTT::Core::Matchers::Touch

Inherits:
Object
  • Object
show all
Defined in:
lib/wtt/core/matchers/touch_matcher.rb

Overview

Matches the extact line that changed

Instance Method Summary collapse

Instance Method Details

#match(spectra, lineno) ⇒ Object



11
12
13
# File 'lib/wtt/core/matchers/touch_matcher.rb', line 11

def match(spectra, lineno)
  true if (spectra.first <= lineno && lineno <= spectra.last) || lineno == 0
end