Sha256: 0fb964c26f2445655f46b5a6e87bb056e192cffbd539659fb94fb9a31d13dab8

Contents?: true

Size: 206 Bytes

Versions: 12

Compression:

Stored size: 206 Bytes

Contents

# frozen_string_literal: true

module Attribeauty
  module Types
    # custom float type
    class Float
      def cast(value)
        return if value.nil?

        Float(value)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
attribeauty-0.4.11 lib/attribeauty/types/float.rb
attribeauty-0.4.8 lib/attribeauty/types/float.rb
attribeauty-0.4.7 lib/attribeauty/types/float.rb
attribeauty-0.4.6 lib/attribeauty/types/float.rb
attribeauty-0.4.5 lib/attribeauty/types/float.rb
attribeauty-0.4.4 lib/attribeauty/types/float.rb
attribeauty-0.4.3 lib/attribeauty/types/float.rb
attribeauty-0.4.2 lib/attribeauty/types/float.rb
attribeauty-0.4.1 lib/attribeauty/types/float.rb
attribeauty-0.4.0 lib/attribeauty/types/float.rb
attribeauty-0.3.4 lib/attribeauty/types/float.rb
attribeauty-0.3.3 lib/attribeauty/types/float.rb