You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Really, the details of inheritance and access in Ruby are worth exploring. I sometimes think a template or a gem or something would be helpful - just not sure how.
There's also this variation
Foo.class_eval
def broda
end
end
(as well as instance_eval, which, iirc, has slightly different semantics on a class than class_eval)
And
f1.instance_eval do
def self.broda; end
end