Sha256: 939a3da9c42a6ca545e6ffbc7f5dceb09b8491b8015707c7b275e40b8d9852d9

Contents?: true

Size: 146 Bytes

Versions: 25

Compression:

Stored size: 146 Bytes

Contents

# frozen_string_literal: true

# Converts string into a floating type number
class FloatConverter
  def convert(string)
    string.to_f
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rast-0.4.0.pre lib/rast/converters/float_converter.rb
rast-0.3.0.pre lib/rast/converters/float_converter.rb
rast-0.1.2.pre lib/rast/converters/float_converter.rb
rast-0.1.1.pre lib/rast/converters/float_converter.rb
rast-0.1.0.pre lib/rast/converters/float_converter.rb