Method: Range#to_a_to_f

Defined in:
lib/cosmos/core_ext/range.rb

#to_a_to_fArray<Float>

Returns Array of each value within the Range converted to Float.

Returns:

  • (Array<Float>)

    Array of each value within the Range converted to Float



24
25
26
# File 'lib/cosmos/core_ext/range.rb', line 24

def to_a_to_f
  collect { |value| value.to_f }
end