Sha256: 5b6b21f5f0f4fcf803c0518c017255c11c344ef589b44eb0b8b7a5363f901fea

Contents?: true

Size: 170 Bytes

Versions: 13

Compression:

Stored size: 170 Bytes

Contents

# frozen_string_literal: true

module ValidateParams
  class Types
    class String
      def self.cast(raw_value, **)
        raw_value.to_s
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
validate-params-0.12.5 lib/validate_params/types/string.rb
validate-params-0.12.4 lib/validate_params/types/string.rb
validate-params-0.12.3 lib/validate_params/types/string.rb
validate-params-0.12.2 lib/validate_params/types/string.rb
validate-params-0.12.1 lib/validate_params/types/string.rb
validate-params-0.12.0 lib/validate_params/types/string.rb
validate-params-0.11.0 lib/validate_params/types/string.rb
validate-params-0.10.1 lib/validate_params/types/string.rb
validate-params-0.10.0 lib/validate_params/types/string.rb
validate-params-0.9.0 lib/validate_params/types/string.rb
validate-params-0.8.1 lib/validate_params/types/string.rb
validate-params-0.8.0 lib/validate_params/types/string.rb
validate-params-0.7.1 lib/validate_params/types/string.rb