simple protected method in ruby