Skip to content

Instantly share code, notes, and snippets.

@simonask
Created February 7, 2009 16:07
Show Gist options
  • Save simonask/59918 to your computer and use it in GitHub Desktop.
Save simonask/59918 to your computer and use it in GitHub Desktop.
Foo: class() {
.attribute("bar", get: { [z]{print(z)} })
}
foo: Foo()
foo.bar(123) //=> output "123"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment