Sha256: 9e6346bf4854689c160be704b1d9677f28912d5aae86d98510013798f68f3c2e

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

module Rasti
  class Form
    module Types
      class String
        class << self

          include Castable
        
          private

          def valid?(value)
            !value.nil? && value.respond_to?(:to_s)
          end

          def transform(value)
            value.to_s
          end

        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rasti-form-2.2.0 lib/rasti/form/types/string.rb
rasti-form-2.1.0 lib/rasti/form/types/string.rb
rasti-form-2.0.0 lib/rasti/form/types/string.rb
rasti-form-1.1.1 lib/rasti/form/types/string.rb
rasti-form-1.1.0 lib/rasti/form/types/string.rb
rasti-form-1.0.3 lib/rasti/form/types/string.rb
rasti-form-1.0.2 lib/rasti/form/types/string.rb
rasti-form-1.0.1 lib/rasti/form/types/string.rb
rasti-form-1.0.0 lib/rasti/form/types/string.rb
rasti-form-0.1.0 lib/rasti/form/types/string.rb