From 85e5c5574612ccfec36b149a3f7bfdd69377cc64 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 4 May 2018 08:30:00 +0900 Subject: [PATCH] Fix "warning: `&' interpreted as argument prefix" This fixes following warning: ``` marcel-0.3.1/lib/marcel/mime_type.rb:64: warning: `&' interpreted as argument prefix ``` --- lib/marcel/mime_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/marcel/mime_type.rb b/lib/marcel/mime_type.rb index 7a8995c..d85d125 100644 --- a/lib/marcel/mime_type.rb +++ b/lib/marcel/mime_type.rb @@ -61,7 +61,7 @@ def for_declared_type(declared_type) def with_io(pathname_or_io, &block) case pathname_or_io when Pathname - pathname_or_io.open &block + pathname_or_io.open(&block) else yield pathname_or_io end