Skip to content

Instantly share code, notes, and snippets.

@enebo
Created January 22, 2020 16:45
Show Gist options
  • Save enebo/7de29cba891a199157102767d172642c to your computer and use it in GitHub Desktop.
Save enebo/7de29cba891a199157102767d172642c to your computer and use it in GitHub Desktop.
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