Skip to content

Instantly share code, notes, and snippets.

@defunkt
Forked from plukevdh/MacRuby way.rb
Created July 21, 2009 00:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save defunkt/151000 to your computer and use it in GitHub Desktop.
Save defunkt/151000 to your computer and use it in GitHub Desktop.
person = Person.new
person.name
person.name = name
person.setFirstName(first, lastName:last)
Person *person = [Person new]; // create an instance of the Person class.
[person name]; // send selector 'name'.
[person setName:name]; // send selector 'setName:', passing the 'name' variable as an argument.
[person setFirstName:first lastName:last]; // send selector 'setFirstName:lastName:',
// passing both 'first' and 'last' variables as arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment