This site is a preview of the curriculum for our Summer 2018 bootcamp in Burlington, Vermont. As we continue our preparation, courses and lessons will appear and disappear; we will rename, rearrange, clarify, and obfuscate as needed... Please consider this a work in progress and keep checking in.
Classes As Objects
Classes as objects (advanced)
is syntactic sugar
Person = Class.new
Person is just a regular constant!
class Person def name "Alice" end end
Person = Class.new Person.class_eval do def name "Alice" end end
the singleton class
aka "eigenclass" (but "metaclass" is incorrect)
method lookup goes through the eigenclass