Method: WatchTower::Editor.editors

Defined in:
lib/watch_tower/editor.rb

.editorsObject



13
14
15
16
17
18
# File 'lib/watch_tower/editor.rb', line 13

def self.editors
  Editor.constants.                                     # Collect the defined constants
    collect { |c| "::WatchTower::Editor::#{c}"}.        # Access them under the Server module
    collect(&:constantize).                             # Make them a constant
    select { |c| c.class == Class }                     # Keep only classes
end