Ruby Metaprogramming Episode 1: Objects and Classes

Posted in Development on July 12, 2008


Ruby Metaprogramming Episode 1: Objects and Classes

Just what is a Ruby object, and how can Ruby move you away from class-oriented development and back to object-oriented development? Learn about:

  • the internals of objects,
  • how classes really aren’t anything special,
  • what self does, and the two ways it can get changed
  • the method call mantra: “one to the right, then up,”
  • singleton methods and ghost classes,
  • why class methods don’t exist,
  • how classes get their names,
  • how the concept of the current class interacts with def

Watch Video

Tags: Ruby, Metaprogramming, OOP, The Pragmatic Programmers, Ruby Metaprogramming