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



6
7
8
# File 'lib/numbers_and_words/core_ext/array.rb', line 6

def to_figures
  NumbersAndWords::FiguresArray.new self
end

#to_words(options = {}) ⇒ Object



2
3
4
# File 'lib/numbers_and_words/core_ext/array.rb', line 2

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