Hi
Today(29-12-2010) I was working on Ruby.
Session on Ruby
Today Thyagarajan sir handled session on Ruby. First we worked on a simple example of multiplication table in ruby and learnt how to format the output. Then we worked on another example ie to generate a calendar in Ruby.
Thyagu sir first taught us some of the methods of Time in Ruby like
- Time.now()
- Time.local()
And also some methods like  strftime(), day, month.
Example:
t = Time.now()
t.strftime(“%a”)
t.strftime(“%B”)
t.day
Thyagu sir and all of us together worked on creating a calendar. We first finished a calendar that will display the calendar based on month and year which is got from the user. Then we tried to display a calendar in 4 X 3 rows ie 4 months in a row just like system calendar. We almost finished it and little bit of modifications is to be done to display the calendar properly.
———————————————————————————————————————-
SCRUM MEET
By 3.45 PM we had our SCRUM meet. I told that I learnt some time functions in ruby and working on calendar.
———————————————————————————————————————-
Today I just learnt some simple time related methods in ruby and enjoyed working on generating calendar in Ruby. Today could not able to learn rails. In the next session I will learn rails.
Regards
Ramachandran