Sha256: 11acd8478b1c51621c4a40615bacf6ec3e0a1b5293a8df6ddbc4d4ed9bcb069c
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
module BankValidator class Bic attr_accessor :value def initialize(bic) @value = bic end def valid? BankValidator::Bic.valid_format?(value) end def self.valid_format?(bic) bic =~ /[A-Z]{6}[A-Z0-9]{2,}/ ? true : false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bank-validator-0.3.0 | lib/bank_validator/bic.rb |