Class: Solargraph::Plugin::Base
- Inherits:
-
Object
- Object
- Solargraph::Plugin::Base
- Defined in:
- lib/solargraph/plugin/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #get_methods(namespace:, root:, scope:, with_private: false) ⇒ Object
-
#initialize(workspace) ⇒ Base
constructor
A new instance of Base.
- #post_initialize ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(workspace) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 10 |
# File 'lib/solargraph/plugin/base.rb', line 5 def initialize workspace # @!attribute [r] workspace # @return [String] define_singleton_method(:workspace) { workspace } post_initialize end |
Instance Method Details
#get_methods(namespace:, root:, scope:, with_private: false) ⇒ Object
23 24 25 |
# File 'lib/solargraph/plugin/base.rb', line 23 def get_methods namespace:, root:, scope:, with_private: false raise "#{self.class} needs to implement the get_methods method" end |
#post_initialize ⇒ Object
12 13 |
# File 'lib/solargraph/plugin/base.rb', line 12 def post_initialize end |
#start ⇒ Object
15 16 17 |
# File 'lib/solargraph/plugin/base.rb', line 15 def start raise "#{self.class} needs to implement the start method" end |
#stop ⇒ Object
19 20 21 |
# File 'lib/solargraph/plugin/base.rb', line 19 def stop raise "#{self.class} needs to implement the stop method" end |