lib/lines.rb in lines-0.1.20 vs lib/lines.rb in lines-0.1.21
- old
+ new
@@ -101,10 +101,10 @@
end
args = ensure_hash!(args)
g = global.inject({}) do |h, (k,v)|
- h[k] = v.respond_to?(:call) ? v.call : v
+ h[k] = (v.respond_to?(:call) ? v.call : v) rescue $!
h
end
g.merge(obj.merge(args))
end