Class: RailsBestPractices::Core::Modules
- Inherits:
-
Array
- Object
- Array
- RailsBestPractices::Core::Modules
- Defined in:
- lib/rails_best_practices/core/modules.rb
Overview
Module container
Direct Known Subclasses
Instance Method Summary collapse
-
#add_module_decendant(module_name, decendant) ⇒ Object
add module decendant.
Instance Method Details
#add_module_decendant(module_name, decendant) ⇒ Object
add module decendant.
10 11 12 13 |
# File 'lib/rails_best_practices/core/modules.rb', line 10 def add_module_decendant(module_name, decendant) mod = find { |mod| mod.to_s == module_name } mod.add_decendant(decendant) if mod end |