module Fugit::At
Public Class Methods
do_parse(s, opts={})
click to toggle source
# File lib/fugit/at.rb, line 14 def do_parse(s, opts={}) case s when /^now$/i then ::EtOrbi::EoTime.now when String then ::EtOrbi.parse(s, opts || {}) when ::EtOrbi::EoTime then s else ::EtOrbi.make_time(s) end end
parse(s, opts={})
click to toggle source
# File lib/fugit/at.rb, line 9 def parse(s, opts={}) do_parse(s, opts || {}) rescue nil end