Skip to content

Instantly share code, notes, and snippets.

@simonask
Created April 10, 2009 07:46
Show Gist options
  • Save simonask/92991 to your computer and use it in GitHub Desktop.
Save simonask/92991 to your computer and use it in GitHub Desktop.
Foo: class {
get_stuff: { /* do it */ }
.property(#stuff, get_stuff, nil)
}
foo: Foo.new()
foo.stuff // => get_stuff()
foo.stuff: 2 // => ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment