Sha256: c3693582b822cd1109f0834ad2e311189751f5c1b50c11b13f5ef4164964012a

Contents?: true

Size: 204 Bytes

Versions: 5

Compression:

Stored size: 204 Bytes

Contents

require 'date'

module Monolens
  module Coerce
    class String
      include Lens

      signature(Type::Any, Type::String)

      def call(arg, world = {})
        arg.to_s
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
monolens-0.6.4 lib/monolens/stdlib/coerce/string.rb
monolens-0.6.3 lib/monolens/stdlib/coerce/string.rb
monolens-0.6.2 lib/monolens/stdlib/coerce/string.rb
monolens-0.6.1 lib/monolens/stdlib/coerce/string.rb
monolens-0.6.0 lib/monolens/stdlib/coerce/string.rb