Thursday, April 9, 2009

Week 4: Rails Passion Course

  1. Week 4: Ruby Object Oriented Programming Concept
  2. * Resources
    o Self tutorial from rubylearning.com
    o Singleton class blog by Ola Bini (Sep. 2006)
  3. 5513_ruby_object.zip (Unzip it in a directory of your choice and read lab document from /ruby_object/index.html to proceed) (4/9/09: done)
  4. o Change Log
  5. * Presentation (o PDF: 1 slide per page (OR) o OpenOffice file) -- NO LINK.
  6. Exercises (p.1-
  7. Exercise #1: The concept of "self" (p.2-5)
  8. (1.1) RubyObject_self_in_TopLevelContext (p.2-3) : Answer: main
    Object
    main
  9. (1.2) RubyObject_self_instanceMethod (p.3): Answer: #
  10. (1.3) RubyObject_self_ClassMethod (p.3-4): Answer: MyClass
  11. (1.4) RubyObject_self_SingletonMethod (p.4): Answer: #
    #
  12. (1.5) RubyObject_self_SingletonMethod2 (p.4-5) Answer: #
    # (same number)
  13. Exercise #2: Singleton Method (p.5-
  14. (2.1) RubyObject_SingletonMethod (p.5-6) Had to type it in. Answer: #LT Object:0x4c272961>
    #LT
  15. (2.2) RubyObject_SingletonMethod2 (p.6) Had to type it in. Answer: #LT:0x30c06258>
    #LT:0x30c06258>'

    NOTE: BLOG IS EATING MY LESS THAN VALUES.

No comments:

Post a Comment