class Jan::CheckDigit
Public Class Methods
new(check_digit)
click to toggle source
@param check_digit [String]
Calls superclass method
# File lib/jan/check_digit.rb, line 4 def initialize(check_digit) @check_digit = check_digit super(check_digit) end
Public Instance Methods
valid?()
click to toggle source
@return [boolean]
# File lib/jan/check_digit.rb, line 10 def valid? @check_digit.match?(/\A\d\z/) end