Module: NumberPlate

Defined in:
lib/number_plate_sg.rb,
lib/number_plate/sg/cli.rb,
lib/number_plate/sg/checksum.rb,
lib/number_plate/sg/generator.rb,
lib/number_plate/sg/validator.rb,
lib/number_plate/sg/base_generator.rb,
lib/number_plate/sg/base_validator.rb

Defined Under Namespace

Modules: SG

Class Method Summary collapse

Class Method Details

.generator(country) ⇒ Object



15
16
17
# File 'lib/number_plate_sg.rb', line 15

def generator(country)
  Object.const_get("NumberPlate::#{country}::Generator").new
end

.validator(country) ⇒ Object



11
12
13
# File 'lib/number_plate_sg.rb', line 11

def validator(country)
  Object.const_get("NumberPlate::#{country}::Validator").new
end