Slide 8
Slide 8 text
An Extra Class
• The anonymous class
doesn’t tell us much
• Code reloading may
cause “TypeError:
superclass mismatch…”
[Specialized,
#,
Struct,
Enumerable,
Object,
PP::ObjectMixin,
Kernel,
BasicObject]
class Specialized < Struct.new(:whatever)
# ... define custom methods here...
end