lib/timeliness/format_set.rb in timeliness-0.3.6 vs lib/timeliness/format_set.rb in timeliness-0.3.7
- old
+ new
@@ -39,9 +39,9 @@
format.process(*values)
end
end
def single_format(format_string)
- @formats_hash[format_string] || Format.new(format_string).compile!
+ @formats_hash.fetch(format_string) { Format.new(format_string).compile! }
end
end
end