Sha256: df9ffca6460267520919dcd87698df7a4da6731ef2e22de11a7bb89087a40b8f

Contents?: true

Size: 119 Bytes

Versions: 25

Compression:

Stored size: 119 Bytes

Contents

module Unit
  module Types
    class String
      def self.cast(value)
        value&.to_s
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
unit-ruby-0.10.0 lib/unit-ruby/types/string.rb
unit-ruby-0.9.0 lib/unit-ruby/types/string.rb
unit-ruby-0.8.1 lib/unit-ruby/types/string.rb
unit-ruby-0.8.0 lib/unit-ruby/types/string.rb
unit-ruby-0.7.0 lib/unit-ruby/types/string.rb
unit-ruby-0.6.0 lib/unit-ruby/types/string.rb
unit-ruby-0.5.0 lib/unit-ruby/types/string.rb
unit-ruby-0.4.3 lib/unit-ruby/types/string.rb
unit-ruby-0.4.2 lib/unit-ruby/types/string.rb
unit-ruby-0.4.1 lib/unit-ruby/types/string.rb
unit-ruby-0.4.0 lib/unit-ruby/types/string.rb
unit-ruby-0.3.7 lib/unit-ruby/types/string.rb
unit-ruby-0.2.7 lib/unit-ruby/types/string.rb
unit-ruby-0.2.6 lib/unit-ruby/types/string.rb
unit-ruby-0.2.5 lib/unit-ruby/types/string.rb
unit-ruby-0.2.4 lib/unit-ruby/types/string.rb
unit-ruby-0.2.3 lib/unit-ruby/types/string.rb
unit-ruby-0.2.2 lib/unit-ruby/types/string.rb
unit-ruby-0.2.1 lib/unit-ruby/types/string.rb
unit-ruby-0.2.0 lib/unit-ruby/types/string.rb