Class: Solargraph::Plugin::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/plugin/base.rb

Direct Known Subclasses

Canceler, Runtime

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_map) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/solargraph/plugin/base.rb', line 7

def initialize api_map
  @api_map = api_map
  post_initialize
end

Instance Attribute Details

#api_mapSolargraph::ApiMap (readonly)

Returns:



5
6
7
# File 'lib/solargraph/plugin/base.rb', line 5

def api_map
  @api_map
end

Instance Method Details

#get_constants(namespace, root) ⇒ Array<String>

Returns:

  • (Array<String>)


21
22
23
# File 'lib/solargraph/plugin/base.rb', line 21

def get_constants namespace, root
  []
end

#get_fqns(namespace, root) ⇒ String

Returns:

  • (String)


26
27
28
# File 'lib/solargraph/plugin/base.rb', line 26

def get_fqns namespace, root
  nil
end

#get_methods(namespace:, root:, scope:, with_private: false) ⇒ Array<String>

Returns:

  • (Array<String>)


16
17
18
# File 'lib/solargraph/plugin/base.rb', line 16

def get_methods namespace:, root:, scope:, with_private: false
  []
end

#post_initializeObject



12
13
# File 'lib/solargraph/plugin/base.rb', line 12

def post_initialize
end

#refreshBoolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/solargraph/plugin/base.rb', line 31

def refresh
  false
end

#runtime?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/solargraph/plugin/base.rb', line 36

def runtime?
  false
end