Sha256: 5fe78847d55b636388220b1405fa4ba131f6a2944b4474c0d61e026ebbfd0a85

Contents?: true

Size: 148 Bytes

Versions: 21

Compression:

Stored size: 148 Bytes

Contents

# frozen_string_literal: true

module Arstotzka
  module TypeCast
    def to_money_float(value)
      value.gsub(/\$ */, '').to_f
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
arstotzka-1.6.2 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.6.1 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.6.0 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.5.0 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.4.4 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.4.3 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.4.2 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.4.1 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.4.0 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.3.2 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.3.1 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.3.0 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.2.4 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.2.3 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.2.2 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.2.1 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.2.0 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.1.0 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.0.4 spec/support/models/arstotzka/type_cast.rb
arstotzka-1.0.3 spec/support/models/arstotzka/type_cast.rb