Pass value to parent in class declaration in Ruby

Viewed 96

I was watching a screencast with Jim Weirich where he started to do something like this:

class Subuser < User("Type")
end

Does Ruby let you pass arguments when defining a parent class? I can't come up with an example where that would actually work.

1 Answers
Related