diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-17 09:37:40 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-17 09:37:40 +0900 |
| commit | dbe85f81dd0369da2f30a72055c5fa81068c3b03 (patch) | |
| tree | 2195eaf20558929be080a9c4e7e569721d38b779 /mrbgems/mruby-symbol-ext | |
| parent | af5a32f4e550124664a61c5701d312c336fa4d50 (diff) | |
| download | mruby-dbe85f81dd0369da2f30a72055c5fa81068c3b03.tar.gz mruby-dbe85f81dd0369da2f30a72055c5fa81068c3b03.zip | |
raises an ArgumentError when calling #call
based on a patch from @ksss; close #2070
Diffstat (limited to 'mrbgems/mruby-symbol-ext')
| -rw-r--r-- | mrbgems/mruby-symbol-ext/mrblib/symbol.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb index a4e8ef7a8..27f59aaad 100644 --- a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +++ b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb @@ -1,7 +1,7 @@ class Symbol def to_proc - Proc.new do |obj, *args| + ->(obj,*args) do obj.send(self, *args) end end |
