class SandiMeter::LOCChecker
Constants
- MAX_LOC
Public Instance Methods
check(params, token)
click to toggle source
# File lib/sandi_meter/loc_checker.rb, line 9 def check(params, token) _, first_line, last_line = params locs_size(first_line, last_line) <= MAX_LOC[token] end
Private Instance Methods
locs_size(first_line, last_line)
click to toggle source
# File lib/sandi_meter/loc_checker.rb, line 15 def locs_size(first_line, last_line) last_line - first_line - 1 end