Created
November 21, 2008 18:59
-
-
Save evanfarrar/27563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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