技術文章的放置地
class A def say(name = "yoo") puts name end end a = A.new temp = a.method(:say) #get Method obj class B def do_something(me) me.call('WTF') end end B.new.do_something(temp) #=> WTF
沒有留言:
張貼留言