Hi, KolluraniPandian,

Acutally there's nothing we need to *calculate* to get the current
month of the year, it is returned by the "Time" object's "month"
method. So to get the current month of the year, we just need to call
Time.now.month.

Ad your second doubt - you can get a string's reversed version,
calling it's "reverse" method, so for example if you want to print an
arg1 variable in reverse, you just call puts "arg1.to_s.reverse".

Greetings,

Krzysztof Witalewski

--~--~---------~--~----~------------~-------~--~----~
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
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
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