Class: RubyLsp::Rfmt::Addon

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

Instance Method Summary collapse

Instance Method Details

#activate(global_state, _message_queue) ⇒ Object



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

def activate(global_state, _message_queue)
  global_state.register_formatter('rfmt', FormatterRunner.new)
end

#deactivateObject



17
# File 'lib/ruby_lsp/rfmt/addon.rb', line 17

def deactivate; end

#nameObject



9
10
11
# File 'lib/ruby_lsp/rfmt/addon.rb', line 9

def name
  'rfmt'
end