Class: Range

Inherits:
Object show all
Defined in:
lib/openc3/core_ext/range.rb

Overview

OpenC3 specific additions to the Ruby Range class

Instance Method Summary collapse

Instance Method Details

#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



27
28
29
# File 'lib/openc3/core_ext/range.rb', line 27

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