diff --git a/lib/numbers_and_words/helper_classes/figures_array.rb b/lib/numbers_and_words/helper_classes/figures_array.rb index cc8227b..9eb0a20 100644 --- a/lib/numbers_and_words/helper_classes/figures_array.rb +++ b/lib/numbers_and_words/helper_classes/figures_array.rb @@ -4,7 +4,7 @@ module NumbersAndWords class FiguresArray < Array - Array.include ArrayExtensions::Helpers + include ArrayExtensions::Helpers def to_words(options = {}) local_language { Strategies.figures_converter.new(self, options).run } @@ -14,6 +14,10 @@ def reverse super.to_figures end + def figures_array_in_capacity(capacity) + super.to_figures + end + def local_language(&block) ::I18n.with_locale(I18n.local_language, &block) end