# File lib/timeliness/parser.rb, line 38 def _parse(string, type=nil, options={}) if options[:strict] && type Definitions.send("#{type}_format_set").match(string, options[:format]) else values = nil Definitions.format_sets(type, string).find {|set| values = set.match(string, options[:format]) } values end rescue nil end