summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-05-25 20:08:09 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-09-04 16:17:06 +0900
commit8a9f891fd3440e89b5ad7287769db8a9ffae9df5 (patch)
tree11479ce9402d140d142ac5c1aa5470d04c4dd132 /include
parent2d8f4fa92fe14d5ec012533ade65eb013a8fc73a (diff)
downloadmruby-8a9f891fd3440e89b5ad7287769db8a9ffae9df5.tar.gz
mruby-8a9f891fd3440e89b5ad7287769db8a9ffae9df5.zip
Rename `Kernel#__method__` to `Kernel#__callee__`
Because the current behavior of `__method__` is equivalent to `__callee__`. Example: # example.rb def src __send__(ARGV[0]) end alias dst src %w[src dst].each {|n| puts "call #{n} => #{__send__(n).inspect}"} Ruby: $ ruby example.rb __method__ call src => :src call dst => :src $ ruby example.rb __callee__ call src => :src call dst => :dst mruby: $ mruby example.rb __method__ call src => :src call dst => :dst
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions