Sha256: 67d95645cfb7bba7cdebf9e3c40a0b383061e8838114b3cb98665fea1e7b8c32

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

require_relative "base_symbol_source.rb"
require_relative "../languages.rb"

module Docks
  module SymbolSources
    class JQuery < Base
      def recognizes?(symbol, options = {})
        language = options.fetch(:language, nil)
        return false if language && Languages.file_type(language) != Types::Languages::SCRIPT

        symbol.downcase == "jquery"
      end

      def path_for(symbol); "http://api.jquery.com/" end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 lib/docks/symbol_sources/jquery_symbol_source.rb
docks_app-0.0.2 lib/docks/symbol_sources/jquery_symbol_source.rb
docks_app-0.0.1 lib/docks/symbol_sources/jquery_symbol_source.rb