Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
d6b4cdb6
Commit
d6b4cdb6
authored
Apr 30, 2014
by
ksss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use Kernel#__send__ insteard of Kernel#send
parent
2cb54e4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mrbgems/mruby-symbol-ext/mrblib/symbol.rb
mrbgems/mruby-symbol-ext/mrblib/symbol.rb
+1
-1
mrblib/enum.rb
mrblib/enum.rb
+1
-1
No files found.
mrbgems/mruby-symbol-ext/mrblib/symbol.rb
View file @
d6b4cdb6
...
...
@@ -3,7 +3,7 @@ class Symbol
def
to_proc
->
(
obj
,
*
args
,
&
block
)
do
obj
.
send
(
self
,
*
args
,
&
block
)
obj
.
__send__
(
self
,
*
args
,
&
block
)
end
end
...
...
mrblib/enum.rb
View file @
d6b4cdb6
...
...
@@ -202,7 +202,7 @@ module Enumerable
raise
ArgumentError
,
"too many arguments"
if
args
.
size
>
2
if
Symbol
===
args
[
-
1
]
sym
=
args
[
-
1
]
block
=
->
(
x
,
y
){
x
.
send
(
sym
,
y
)}
block
=
->
(
x
,
y
){
x
.
__send__
(
sym
,
y
)}
args
.
pop
end
if
args
.
empty?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment