Tuesday, 5 January 2010

Ruby Object Model

Dave Thomas's Lecture at Scotland on Rails 2009

  • Classes in Ruby are simply objects which hold tables of methods
  • IF it can't find a method call, it jumps to the parent
  • IF it gets to the top & doesn't find a method call, it goes back to the bottom & looks for a method called methodmissing
  • "Singleton Class" - a class any object has as soon as you add a method to it, it's invisible

No comments:

Post a Comment