Created
January 21, 2014 06:30
-
-
Save dalang/8535308 to your computer and use it in GitHub Desktop.
How to call super.super method
From http://stackoverflow.com/questions/4557304/calling-supers-super-method
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
grandparent = self.class.superclass.superclass | |
meth = grandparent.instance_method(:the_method) | |
meth.bind(self).call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment