Sha256: 77d5e83ff7d2befe2654230d4a60cafc52f98d1a0e16752c909a6bae437fb316

Contents?: true

Size: 212 Bytes

Versions: 12

Compression:

Stored size: 212 Bytes

Contents

# frozen_string_literal: true

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

        Integer(value)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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