instance method include_all_modules_from

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

include_all_modules_from(parent_module)

No documentation comment.

Parameters

parent_module req
Source
# File railties/lib/console_with_helpers.rb, line 2
  def include_all_modules_from(parent_module)
    parent_module.constants.each do |const|
      mod = parent_module.const_get(const)
      if mod.class == Module
        send(:include, mod)
        include_all_modules_from(mod)
      end
    end
  end

Defined in railties/lib/console_with_helpers.rb line 2 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Module

Type at least 2 characters to search.

↑↓ navigate · open · esc close