Module: Hope::Source

Defined in:
lib/hope/source.rb

Defined Under Namespace

Classes: Base, Sub, Twitter

Class Method Summary collapse

Class Method Details

.register(src) ⇒ Object



10
11
12
# File 'lib/hope/source.rb', line 10

def self.register src
  self.sources[src.name] = src
end

.sourcesObject



6
7
8
# File 'lib/hope/source.rb', line 6

def self.sources
  @sources ||= {}
end

.unregister(src) ⇒ Object



14
15
16
# File 'lib/hope/source.rb', line 14

def self.unregister src
  self.sources.delete src.name
end