Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/brid/algorithms/mod10.rb,
lib/brid/algorithms/mod11.rb

Instance Method Summary collapse

Instance Method Details

#mod10(digits = 1, options = {}) ⇒ Object



17
18
19
# File 'lib/brid/algorithms/mod10.rb', line 17

def mod10 digits = 1, options = {}
  (Mod10.new(self, options) * digits).to_s
end

#mod11(digits = 1, options = {}) ⇒ Object



13
14
15
# File 'lib/brid/algorithms/mod11.rb', line 13

def mod11 digits = 1, options = {}
  (Mod11.new(self, options) * digits).to_s
end