Module: WatchTower::Editor

Extended by:
ActiveSupport::Autoload
Defined in:
lib/watch_tower/editor.rb,
lib/watch_tower/editor/vim.rb,
lib/watch_tower/editor/xcode.rb,
lib/watch_tower/editor/base_ps.rb,
lib/watch_tower/editor/textmate.rb,
lib/watch_tower/editor/base_appscript.rb

Defined Under Namespace

Modules: BaseAppscript, BasePs Classes: Textmate, Vim, Xcode

Class Method Summary collapse

Class Method Details

.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