Thanks for your answer. As usually, things are clearer, but more
questions arise.

When I removed "self", leaving just

name = name.gsub(/[^A-Za-z]/, "") if attribute_present?("name")

I got exception saying I try to call gsub on null. Now this is strange...

If you could also explain how ruby can think "name" on the left side
is method. It has "=" sign on the right, is it possible with methods?

I come from java (and earlier C++) world, and I can see in ruby many
things are sooo different. It's not new programming language. It's new
way of thinking. That's why I wanna learn it.

Best regards
-- 
Pawel Stawicki
http://pawelstawicki.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to