Sha256: 8d8f68fbe41fa3cf7d0f607c055b624d5401da3630f9880283972f291a936653

Contents?: true

Size: 554 Bytes

Versions: 39

Compression:

Stored size: 554 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
    collect {|value| value.to_f }
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
cosmos-4.5.2-java lib/cosmos/core_ext/range.rb
cosmos-4.5.2 lib/cosmos/core_ext/range.rb
cosmos-4.5.1-java lib/cosmos/core_ext/range.rb
cosmos-4.5.1 lib/cosmos/core_ext/range.rb
cosmos-4.5.0-java lib/cosmos/core_ext/range.rb
cosmos-4.5.0 lib/cosmos/core_ext/range.rb
cosmos-4.4.2-java lib/cosmos/core_ext/range.rb
cosmos-4.4.2 lib/cosmos/core_ext/range.rb
cosmos-4.4.1-java lib/cosmos/core_ext/range.rb
cosmos-4.4.1 lib/cosmos/core_ext/range.rb
cosmos-4.4.0-java lib/cosmos/core_ext/range.rb
cosmos-4.4.0 lib/cosmos/core_ext/range.rb
cosmos-4.3.0-java lib/cosmos/core_ext/range.rb
cosmos-4.3.0 lib/cosmos/core_ext/range.rb
cosmos-4.2.4-java lib/cosmos/core_ext/range.rb
cosmos-4.2.4 lib/cosmos/core_ext/range.rb
cosmos-4.2.3-java lib/cosmos/core_ext/range.rb
cosmos-4.2.3 lib/cosmos/core_ext/range.rb
cosmos-4.2.2-java lib/cosmos/core_ext/range.rb
cosmos-4.2.2 lib/cosmos/core_ext/range.rb