Skip to content

Instantly share code, notes, and snippets.

@evanfarrar
Created November 21, 2008 18:59
Show Gist options
  • Save evanfarrar/27563 to your computer and use it in GitHub Desktop.
Save evanfarrar/27563 to your computer and use it in GitHub Desktop.
class Person
attr_accessor :name
alias :to_s :name
def initialize(name); self.name = name; end
end
Shoes.app do
sheila = Person.new("Sheila")
liz = Person.new("Elizabeth")
steve = Person.new("Steven")
nick = Person.new("Nicholas")
para "my bff:"
list_box(:items => [sheila, liz, steve, nick])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment