Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (18 sloc) 0.366 kb
module Phony
class Validator
attr_reader :ndc_checks
def initialize
@ndc_checks = []
end
def plausible? ndc, rest
ndc_checks && ndc_checks.each do |ndc_check|
return false if ndc_check === ndc
end
true
end
def ndc_check ndc
@ndc_checks << ndc
self
end
end
end
Jump to Line
Something went wrong with that request. Please try again.