@tekin's Twitter archive

source code
I was today years old when I learnt Ruby lets you specify other methods as parameter defaults 🤯

class Foo
def foo(param = bar)
param
end

def bar
'default'
end
end

> http://Foo.new.foo
=> 'default'

I think I need a lie down...
4
24