Hi, I have a class that has an attribute named "an_attribute". I would like to define the following function
def an_attribute=(new_value) return false end The problem is every time I call the function, the return value is always "new_value" instead of "false." Is there anyway for me to make it return "false"? Of course, the above simplistic example is only used to illustrate what I want to ask. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---