Method: Truck::Autoloader#each_possible_const
- Defined in:
- lib/truck/autoloader.rb
#each_possible_const(const_name) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/truck/autoloader.rb', line 24 def each_possible_const(const_name) return to_enum(:each_possible_const, const_name) unless block_given? dir_paths.each do |dir_path| base_nibbles.map { |e| yield constify(e, *dir_path, const_name) } yield constify(*dir_path, const_name) end end |