Module: Acclaim::Option::Type::DateTime

Defined in:
lib/acclaim/option/type/date_time.rb

Overview

Handles dates and times given as arguments in the command line.

Since:

  • 0.0.1

Class Method Summary collapse

Class Method Details

.handle(str) ⇒ Object

Parses a DateTime from the string.

Since:

  • 0.0.1



12
13
14
# File 'lib/acclaim/option/type/date_time.rb', line 12

def self.handle(str)
  ::DateTime.parse str
end