Module: RubyLsp::Requests::Support::Formatter
- Included in:
- RuboCopFormatter, SyntaxTreeFormatter
- Defined in:
- lib/ruby_lsp/requests/support/formatter.rb
Overview
Empty module to avoid the runtime component. This is an interface defined in sorbet/rbi/shims/ruby_lsp.rbi
Instance Method Summary collapse
-
#run_diagnostic(uri, document) ⇒ Object
abstract
: (URI::Generic, RubyLsp::RubyDocument) -> Array?.
-
#run_formatting(uri, document) ⇒ Object
abstract
: (URI::Generic, RubyLsp::RubyDocument) -> String?.
-
#run_range_formatting(uri, source, base_indentation) ⇒ Object
abstract
: (URI::Generic, String, Integer) -> String?.
Instance Method Details
#run_diagnostic(uri, document) ⇒ Object
This method is abstract.
: (URI::Generic, RubyLsp::RubyDocument) -> Array?
24 25 26 |
# File 'lib/ruby_lsp/requests/support/formatter.rb', line 24 def run_diagnostic(uri, document) raise AbstractMethodInvokedError end |
#run_formatting(uri, document) ⇒ Object
This method is abstract.
: (URI::Generic, RubyLsp::RubyDocument) -> String?
12 13 14 |
# File 'lib/ruby_lsp/requests/support/formatter.rb', line 12 def run_formatting(uri, document) raise AbstractMethodInvokedError end |
#run_range_formatting(uri, source, base_indentation) ⇒ Object
This method is abstract.
: (URI::Generic, String, Integer) -> String?
18 19 20 |
# File 'lib/ruby_lsp/requests/support/formatter.rb', line 18 def run_range_formatting(uri, source, base_indentation) raise AbstractMethodInvokedError end |