[Seaside] question on tutorial - contact manager

sergio_101 sergiolist at village-buzz.com
Sat Feb 20 16:59:46 UTC 2010


i may have just missed the explanation.. but i am seeing a new syntax
that i don't understand here:

http://book.seaside.st/book/fundamentals/forms/drop-down


Contact>>gender
    ^ gender ifNil: [ gender := #Male ]
Contact>>isMale
    ^ self gender = #Male
Contact>>isFemale
    ^ self gender = #Female

i don't understand the hash in front of the gender.. did i just gloss
over something?

thanks!

-- 

----
peace,
sergio
photographer, journalist, visionary

http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101


More information about the seaside mailing list