Sha256: f1a034a0459e086f4fd9c7d52e0c98e75705f6ded18f0ff846d940ee193d32da
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
module Monolens module Coerce extend Namespace def date(options, registry) Date.new(options, registry) end module_function :date def integer(options, registry) Integer.new(options, registry) end module_function :integer def datetime(options, registry) DateTime.new(options, registry) end module_function :datetime def string(options, registry) String.new(options, registry) end module_function :string def array(options, registry) Array.new(options, registry) end module_function :array Monolens.define_namespace 'coerce', self end end require_relative 'coerce/date' require_relative 'coerce/date_time' require_relative 'coerce/integer' require_relative 'coerce/string' require_relative 'coerce/array'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
monolens-0.6.4 | lib/monolens/stdlib/coerce.rb |
monolens-0.6.3 | lib/monolens/stdlib/coerce.rb |