diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-17 13:28:54 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-17 13:28:54 +0900 |
| commit | 1d51d1a0b55ebde3c5b96f35e1bc00072170c65b (patch) | |
| tree | f6877a23c80a4d70ab5a2605063542eee8d9679b | |
| parent | dbe85f81dd0369da2f30a72055c5fa81068c3b03 (diff) | |
| download | mruby-1d51d1a0b55ebde3c5b96f35e1bc00072170c65b.tar.gz mruby-1d51d1a0b55ebde3c5b96f35e1bc00072170c65b.zip | |
Symbol#to_proc to support block call.
based on a patch from @ksss; close #2071
| -rw-r--r-- | mrbgems/mruby-symbol-ext/mrblib/symbol.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb index 27f59aaad..78edf3cad 100644 --- a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +++ b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb @@ -1,8 +1,8 @@ class Symbol def to_proc - ->(obj,*args) do - obj.send(self, *args) + ->(obj,*args,&block) do + obj.send(self, *args, &block) end end |
