Skip to content

Instantly share code, notes, and snippets.

@simonask
Created February 7, 2009 16:15
Show Gist options
  • Save simonask/59921 to your computer and use it in GitHub Desktop.
Save simonask/59921 to your computer and use it in GitHub Desktop.
/*
Snow Private Methods
*/
SomeClass: class() {
private_method: [arg] {
print(arg)
}
.initialize: [arg] {
private_method.call_with_self(self, arg)
}
}
obj: SomeClass(123) //=> output "123"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment