ruby四种魔法写法

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

def i(a='')
  print a
end
def love(a='')
  "Hello " + a
end
def you
  "world! \n"
end

i love you

def I
  yield
end
def Love
  yield
end
def You
  yield
  print "Hello world! \n"
end
I{Love{You{}}}