Created
January 22, 2020 16:45
-
-
Save enebo/7de29cba891a199157102767d172642c to your computer and use it in GitHub Desktop.
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
class Object | |
# include the class specified by +include_class+ into the current namespace, | |
# using either its base name or by using a name returned from an optional block, | |
# passing all specified classes in turn and providing the block package name | |
# and base class name. | |
# @deprecated use {Object#java_import} | |
def include_class(include_class, &block) | |
warn "#{__method__} is deprecated. Use java_import." | |
java_import(include_class, &block) | |
end | |
private :include_class | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment