基本上我想知道是否可以在Ruby中完成以下操作.
例如:
def bar(symbol) # magic code goes here, it outputs "a = 100" end def foo a = 100 bar(:a) end
ruby
ruby ×1