method

used_modules

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Module
used_modules() public

Returns an array of all modules used in the current scope. The ordering of modules in the resulting array is not defined.

module A
  refine Object do
  end
end

module B
  refine Object do
  end
end

using A
using B
p Module.used_modules

produces:

[B, A]
Show source
Register or log in to add new notes.