Class: RubyLsp::FactoryBot::Addon

Inherits:
Addon
  • Object
show all
Defined in:
lib/ruby_lsp/factory_bot/addon.rb

Instance Method Summary collapse

Instance Method Details

#activate(global_state, _message_queue) ⇒ Object



21
22
23
# File 'lib/ruby_lsp/factory_bot/addon.rb', line 21

def activate(global_state, _message_queue)
  @index = global_state.index
end

#create_definition_listener(response_builder, uri, node_context, dispatcher) ⇒ Object



27
28
29
# File 'lib/ruby_lsp/factory_bot/addon.rb', line 27

def create_definition_listener(response_builder, uri, node_context, dispatcher)
  Definition.new(response_builder, uri, node_context, @index, dispatcher)
end

#deactivateObject



25
# File 'lib/ruby_lsp/factory_bot/addon.rb', line 25

def deactivate; end

#nameObject



13
14
15
# File 'lib/ruby_lsp/factory_bot/addon.rb', line 13

def name
  "Ruby LSP - Factory Bot"
end

#versionObject



17
18
19
# File 'lib/ruby_lsp/factory_bot/addon.rb', line 17

def version
  VERSION
end