defined?(super) does not work #100

doudou opened this Issue Nov 28, 2009 · 1 comment


None yet
2 participants

doudou commented Nov 28, 2009

the defined?(super) idiom can be used to efficiently use modules for plugins, i.e.:

def a_method
  # do stuff
  # ... and then call potential modules that have been included
  super if defined? super

rubinius does not implement defined?(super). I guess, though, that it would not be so difficult to at least implement a Kernel#has_super? method that returns true if there is a "super" method.


evanphx commented Dec 4, 2009

defined?(super) support, served with a side of crow. Closed by 90d6311.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment