Sha256: 939a0bb030f8bd880cc268b73113d1bdf1e249a8c9553a5425915da2029da63d

Contents?: true

Size: 245 Bytes

Versions: 3

Compression:

Stored size: 245 Bytes

Contents

module NumberPlateValidator 
	class CountryValidatorBase

		attr_reader :country	

		def is_valid?(registration_number)
			@license = registration_number.gsub(/\s/, "").upcase if registration_number.present?
			@license.present?
		end

	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
number_plate_validator-0.2.2 lib/number_plate_validator/country_validator_base.rb
number_plate_validator-0.2.1 lib/number_plate_validator/country_validator_base.rb
number_plate_validator-0.2.0 lib/number_plate_validator/country_validator_base.rb