Skip to content

Instantly share code, notes, and snippets.

View ParadoxV5's full-sized avatar
🌻
Google Summer of Code 2024

ParadoxV5

🌻
Google Summer of Code 2024
View GitHub Profile
@havenwood
havenwood / super.rb
Created May 25, 2018 17:54
Example's of how Ruby's super keyword passes on args and blocks
class Foo
def foo arg = false
{arg: arg, block: block_given?}
end
end
class Bar < Foo
def foo *args
super
end