Sha256: b52e4fe374dd79a789bee83ae9b3d10a8e272f3e4e115e7e0e2e7dffa3c56dab
Contents?: true
Size: 209 Bytes
Versions: 1
Compression:
Stored size: 209 Bytes
Contents
# frozen_string_literal: false require 'time' Cmd::OptionParser.accept(Time) do |s,| begin (Time.httpdate(s) rescue Time.parse(s)) if s rescue raise Cmd::OptionParser::InvalidArgument, s end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cmd-optparse.rb-0.5.2 | lib/cmd/option_parser/time.rb |