Skip to content

Instantly share code, notes, and snippets.

@yossale
Created April 19, 2011 18:36
Show Gist options
  • Select an option

  • Save yossale/929202 to your computer and use it in GitHub Desktop.

Select an option

Save yossale/929202 to your computer and use it in GitHub Desktop.
Basic Fish class wit only name attribute
class Fish {
private var myName = "Default"
def name = myName
def name_= (newName: String) = myName = newName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment