lib/constrain.rb in constrain-0.3.2 vs lib/constrain.rb in constrain-0.3.3
- old
+ new
@@ -124,10 +124,10 @@
when Regexp; expr.to_s
when Array; "[" + expr.map { |expr| fmt_expr(expr) }.join(", ") + "]"
when Hash; "{" + expr.map { |k,v| "#{fmt_expr(k)} => #{fmt_expr(v)}" }.join(", ") + "}"
when Proc; "Proc@#{expr.source_location.first}:#{expr.source_location.last}"
else
- raise Error, "Illegal expression: #{expr.inspect}"
+ expr.inspect
end
end
end