Sha256: 8cb0f6a11a3fd25f600c325571611415799e59938df2182b57978220e04a0ab8

Contents?: true

Size: 274 Bytes

Versions: 24

Compression:

Stored size: 274 Bytes

Contents

module Toy
  module Extensions
    module String
      def to_store(value, *)
        value.nil? ? nil : value.to_s
      end

      def from_store(value, *)
        value.nil? ? nil : value.to_s
      end
    end
  end
end

class String
  extend Toy::Extensions::String
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
toystore-0.6.2 lib/toy/extensions/string.rb
toystore-0.6.1 lib/toy/extensions/string.rb
toystore-0.6 lib/toy/extensions/string.rb
toystore-0.5 lib/toy/extensions/string.rb