Class: String
- Inherits:
-
Object
- Object
- String
- 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, = {} (Mod10.new(self, ) * digits).to_s end |
#mod11(digits = 1, options = {}) ⇒ Object
13 14 15 |
# File 'lib/brid/algorithms/mod11.rb', line 13 def mod11 digits = 1, = {} (Mod11.new(self, ) * digits).to_s end |