San Francisco

Teacher

Attendance

5 students were there

June 18, 2015

Under the Hood with the Ruby Object Model

Learn about one of Ruby's most powerful capabilities: code that writes code for you

In this lesson, we'll talk about Ruby's object model -- the way the code you write and objects you create are understood and structured by Ruby under the covers. This will be the backdrop against a more specific and practical idea: how we can use Ruby's metaprogramming facilities to make better, more concise, and more powerful code.

We'll talk about:

  • Ruby's object model

  • classes, eigenclasses, Ruby's inheritance tree vs. eigenclass graph

  • the #send method

  • defining methods metaprogrammatically, #define_method, and scope

  • #instance_eval, #class_eval, and #method_missing: the most important tools in the Ruby metaprogramming toolbox



2:30pm Pacific - 3:45pm Pacific on June 18, 2015 at Coshx Labs
5 students were there

Whiteboard

Please, sign in to see the Whiteboard