Sha256: d4e3ca4fc0478a5bc9953f98bce106277c07e9497ca62587872598fc3370c06c

Contents?: true

Size: 604 Bytes

Versions: 25

Compression:

Stored size: 604 Bytes

Contents

# encoding: ascii-8bit

# Copyright 2014 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt

# COSMOS specific additions to the Ruby Range class
class Range
  # @return [Array<Float>] Array of each value within the Range converted to
  #   Float
  def to_a_to_f
    array = []
    self.each do |value|
      array << value.to_f
    end
    array
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cosmos-3.8.3 lib/cosmos/core_ext/range.rb
cosmos-3.8.2 lib/cosmos/core_ext/range.rb
cosmos-3.8.1 lib/cosmos/core_ext/range.rb
cosmos-3.8.0 lib/cosmos/core_ext/range.rb
cosmos-3.7.1 lib/cosmos/core_ext/range.rb
cosmos-3.7.0 lib/cosmos/core_ext/range.rb
cosmos-3.6.3 lib/cosmos/core_ext/range.rb
cosmos-3.6.2 lib/cosmos/core_ext/range.rb
cosmos-3.6.1 lib/cosmos/core_ext/range.rb
cosmos-3.6.0 lib/cosmos/core_ext/range.rb
cosmos-3.5.3 lib/cosmos/core_ext/range.rb
cosmos-3.5.2 lib/cosmos/core_ext/range.rb
cosmos-3.5.0 lib/cosmos/core_ext/range.rb
cosmos-3.4.2 lib/cosmos/core_ext/range.rb
cosmos-3.4.1 lib/cosmos/core_ext/range.rb
cosmos-3.4.0 lib/cosmos/core_ext/range.rb
cosmos-3.3.3 lib/cosmos/core_ext/range.rb
cosmos-3.3.2 lib/cosmos/core_ext/range.rb
cosmos-3.3.1 lib/cosmos/core_ext/range.rb
cosmos-3.3.0 lib/cosmos/core_ext/range.rb