Sha256: d75b10cda36587a60748d46f2b492eb758dc528546c118df5b1f59528b5c0f58

Contents?: true

Size: 169 Bytes

Versions: 20

Compression:

Stored size: 169 Bytes

Contents

module ActiveRemote
  module Typecasting
    class FloatTypecaster
      def self.call(value)
        value.to_f if value.respond_to?(:to_f)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
active_remote-3.3.3 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.3.2 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.3.1 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.3.0 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.2.2 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.2.1 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.2.0 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.2.0.pre lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.1.3 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.1.2 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.1.2.pre lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.1.1 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.1.0 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.0.0 lib/active_remote/typecasting/float_typecaster.rb
active_remote-3.0.0.pre1 lib/active_remote/typecasting/float_typecaster.rb
active_remote-2.4.0 lib/active_remote/typecasting/float_typecaster.rb
active_remote-2.3.5 lib/active_remote/typecasting/float_typecaster.rb
active_remote-2.3.4 lib/active_remote/typecasting/float_typecaster.rb
active_remote-2.3.3 lib/active_remote/typecasting/float_typecaster.rb
active_remote-2.3.3.pre lib/active_remote/typecasting/float_typecaster.rb