As you can see in the image. I have written code and It does not REDATE IT. so I copied the code from the beginning of this section to make sure if it works or not. It doesn't redate it. Why i dont know.
Futhermore, I write this code on my notepad app in mac save it with extension rb. Run this rb file in terminal and guess what the code fails.
Any one can explain why ?