Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/numbers_and_words/core_ext/array.rb

Instance Method Summary collapse

Instance Method Details

#to_figuresObject


8
9
10
# File 'lib/numbers_and_words/core_ext/array.rb', line 8

def to_figures
  NumbersAndWords::FiguresArray.new self
end

#to_words(options = {}) ⇒ Object


4
5
6
# File 'lib/numbers_and_words/core_ext/array.rb', line 4

def to_words(options = {})
  map { |element| element.to_words options }
end