#inherited
is called right after the class Foo
statement. I want something that'll run only after the end
statement that closes the class declaration.
Here's some code to exemplify what I need:
class Class def inherited m puts "In #inherited for #{m}" endendclass Foo puts "In Foo"endputs "I really wanted to have #inherited tiggered here."### Output:# In #inherited for Foo# In Foo# I really wanted to have #inherited tiggered here.
Does anything like that exist? Can it be created? Am I totally out of luck?