Module: Docks::SymbolSources
- Defined in:
- lib/docks/symbol_sources.rb,
lib/docks/symbol_sources/mdn_symbol_source.rb,
lib/docks/symbol_sources/base_symbol_source.rb,
lib/docks/symbol_sources/sass_symbol_source.rb,
lib/docks/symbol_sources/jquery_symbol_source.rb
Defined Under Namespace
Classes: Base, JQuery, MDN, Sass
Class Method Summary
collapse
Class Method Details
.<<(source) ⇒ Object
10
11
12
|
# File 'lib/docks/symbol_sources.rb', line 10
def self.<<(source)
register(source)
end
|
.path_for(symbol, options = {}) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/docks/symbol_sources.rb', line 14
def self.path_for(symbol, options = {})
@sources.each do |source|
return source.path_for(symbol) if source.recognizes?(symbol, options)
end
nil
end
|
.register(source) ⇒ Object
5
6
7
8
|
# File 'lib/docks/symbol_sources.rb', line 5
def self.register(source)
source = source.instance
@sources << source unless @sources.include?(source)
end
|