Class: Solargraph::Plugin::Base

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

Direct Known Subclasses

Runtime

Instance Method Summary collapse

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_initializeObject



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

def post_initialize
end

#startObject



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

def start
  raise "#{self.class} needs to implement the start method"
end

#stopObject



19
20
21
# File 'lib/solargraph/plugin/base.rb', line 19

def stop
  raise "#{self.class} needs to implement the stop method"
end