Module: Bonobot::OverloadsRegistry
- Includes:
- Findable, Outputable, Reloadable
- Defined in:
- lib/bonobot/overloads_registry.rb
Class Method Summary collapse
Methods included from Reloadable
Methods included from Outputable
Methods included from Findable
Class Method Details
.all ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/bonobot/overloads_registry.rb', line 9 def self.all @all ||= LocalFilesRegistry.all.flat_map do |local_file| next if local_file.nil? engines_files = EnginesFilesRegistry.find_by(short_path: local_file.path) if engines_files.empty? && local_file.annotation.present? Overload.new(local_file, nil) else engines_files.map do |engine_file| Overload.new(local_file, engine_file) end end end.compact end |