Class: BRDocuments::IE::MG
- Defined in:
- lib/br_documents/documents/ie/mg.rb
Constant Summary
Constants inherited from Base
Base::FIXED_INITIAL_NUMBERS, Base::INITIAL_FIX_NUMBERS_POSITION
Instance Method Summary collapse
Methods inherited from Base
fixed_digits, fixed_digits_positions, generate_root_numbers, set_fixed_digits, #valid?, valid_fixed_digits?, #valid_fixed_digits?, #validate_fixed_digits?
Instance Method Details
#calculate_digits_data(number, weights) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/br_documents/documents/ie/mg.rb', line 15 def calculate_digits_data(number, weights) # For the first digit, a very different approach is applied if first_weight_mask?(weights) return calculate_first_digit_data(number, weights) end super(number, weights) end |