lib/timeliness/parser.rb in timeliness-0.3.0 vs lib/timeliness/parser.rb in timeliness-0.3.1
- old
+ new
@@ -52,10 +52,10 @@
def type_and_options_from_args(args)
options = args.last.is_a?(Hash) ? args.pop : {}
type_or_now = args.first
if type_or_now.is_a?(Symbol)
type = type_or_now
- elsif !type_or_now.is_a?(Hash)
+ elsif type_or_now
options[:now] = type_or_now
end
return type, options
end