Skip to content

Instantly share code, notes, and snippets.

@yxhuvud

yxhuvud/foo.cr Secret

Created August 6, 2020 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yxhuvud/d9b8116c188ebaf09d75cc2f09769f4e to your computer and use it in GitHub Desktop.
Save yxhuvud/d9b8116c188ebaf09d75cc2f09769f4e to your computer and use it in GitHub Desktop.
yada
class Foo
def self.add(x, y)
x + y
end
end
def foo
yield 1, 2
end
puts foo &->Foo.add(Int32, Int32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment