search for: restof

Displaying 1 result from an estimated 1 matches for "restof".

Did you mean: resto
2006 Jul 22
0
When do you protect a method?
...method? Specifically, in the depot application, we add price validation as a protected method "because it shouldn?t be called from outside the context of the model" (p 77). Why wouldn''t you want the price validation called from outside of the model? And why are we adding the restof the validation as unprotected? Thanks, -- Austin -- Posted via http://www.ruby-forum.com/.