Class: Textmate::Remote

Inherits:
Object
  • Object
show all
Defined in:
lib/textmate/remote.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.register_source(klass) ⇒ Object



3
4
5
# File 'lib/textmate/remote.rb', line 3

def self.register_source(klass)
  sources << klass.new
end

.sourcesObject



7
8
9
# File 'lib/textmate/remote.rb', line 7

def self.sources
  @sources ||= []
end

Instance Method Details

#bundles(search = '') ⇒ Object



15
16
17
18
19
# File 'lib/textmate/remote.rb', line 15

def bundles(search = '')
  sources.inject({}) do |hash, source|
    hash.update(source => source.bundles(search))
  end
end

#sourcesObject



11
12
13
# File 'lib/textmate/remote.rb', line 11

def sources
  self.class.sources
end