Class: Solargraph::Plugin::Base
- Inherits:
-
Object
- Object
- Solargraph::Plugin::Base
- Defined in:
- lib/solargraph/plugin/base.rb
Instance Attribute Summary collapse
- #api_map ⇒ Solargraph::ApiMap readonly
Instance Method Summary collapse
- #get_constants(namespace, root) ⇒ Array<String>
- #get_fqns(namespace, root) ⇒ String
- #get_methods(namespace:, root:, scope:, with_private: false) ⇒ Array<String>
-
#initialize(api_map) ⇒ Base
constructor
A new instance of Base.
- #post_initialize ⇒ Object
- #refresh ⇒ Boolean
- #runtime? ⇒ Boolean
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_map ⇒ Solargraph::ApiMap (readonly)
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>
21 22 23 |
# File 'lib/solargraph/plugin/base.rb', line 21 def get_constants namespace, root [] end |
#get_fqns(namespace, root) ⇒ 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>
16 17 18 |
# File 'lib/solargraph/plugin/base.rb', line 16 def get_methods namespace:, root:, scope:, with_private: false [] end |
#post_initialize ⇒ Object
12 13 |
# File 'lib/solargraph/plugin/base.rb', line 12 def post_initialize end |
#refresh ⇒ Boolean
31 32 33 |
# File 'lib/solargraph/plugin/base.rb', line 31 def refresh false end |
#runtime? ⇒ Boolean
36 37 38 |
# File 'lib/solargraph/plugin/base.rb', line 36 def runtime? false end |