diff --git a/lib/numbers_and_words/strategies/figures_converter/languages/pt_br.rb b/lib/numbers_and_words/strategies/figures_converter/languages/pt_br.rb index 043cb10d..b8e8b7f8 100644 --- a/lib/numbers_and_words/strategies/figures_converter/languages/pt_br.rb +++ b/lib/numbers_and_words/strategies/figures_converter/languages/pt_br.rb @@ -81,7 +81,7 @@ def is_opaque? end def is_one_thousand? - @current_capacity == 1 && figures[0] == 1 && figures.hundreds.nil? && figures.tens.nil? + current_capacity == 1 && figures[0] == 1 && figures.hundreds.nil? && figures.tens.nil? end def is_without_connector? diff --git a/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb b/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb index 7eae54da..cbcfd834 100644 --- a/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +++ b/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb @@ -35,7 +35,7 @@ def process language, figures end def handle_thousands language, figures - units, tens, hundreds, thousands = *figures.to_a.dup + _units, _tens, hundreds, thousands = *figures.to_a.dup if hundreds == 0 language.number_without_capacity_to_words + language.complex_number_to_words else @@ -45,7 +45,7 @@ def handle_thousands language, figures end def handle_hundreds language, figures - units, tens, hundreds = *figures.to_a.dup + _units, _tens, hundreds = *figures.to_a.dup result = tens_with_oh language, figures result.push hundreds.to_words end