> - foo = nil unless defined?(foo)
> - bar = 42 unless defined?(bar) && bar

Correct me if I'm wrong but:
- foo ||= nil
- bar ||= 42

May be quicker and shorter way to force default values for undefined  
or nil or false values.

Cheers,
-- 
Adam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to