Module: Ruckus::StructureSearchModules::ClassMethods
- Defined in:
- lib/ruckus/structure/searchmods.rb
Instance Method Summary collapse
Instance Method Details
#derive_search_module ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ruckus/structure/searchmods.rb', line 13 def derive_search_module if self.search_modules.empty? return Ruckus else mod = Module.new self.search_modules.each do |m| mod.module_eval "include #{ m.to_s.class_name }" end mod.module_eval "include Ruckus" return mod end end |
#search_module(*args) ⇒ Object
26 27 28 29 30 |
# File 'lib/ruckus/structure/searchmods.rb', line 26 def search_module(*args) args.each do |m| self.search_modules << m end end |