Sha256: 3f3819f03442f9220245a36b89faffbd7b99f797ebc054c526d831dcbfe9e1aa
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true require_relative "date_time/services" ## # @internal # Usage examples: # # result = ConvenientService::Examples::Standard::DateTime.safe_parse("24-02-2024", "%d-%m-%Y") # module ConvenientService module Examples module Standard class DateTime include ConvenientService::Feature entry :safe_parse do |string, format| Services::SafeParse[string: string, format: format] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
convenient_service-0.14.0 | lib/convenient_service/examples/standard/date_time.rb |
convenient_service-0.13.0 | lib/convenient_service/examples/standard/date_time.rb |