Class: RubyLsp::Ree::BaseFormatter
- Inherits:
-
Object
- Object
- RubyLsp::Ree::BaseFormatter
- Defined in:
- lib/ruby_lsp/ruby_lsp_ree/formatters/base_formatter.rb
Direct Known Subclasses
ImportPackagesFormatter, MissingErrorContractsFormatter, MissingErrorDefinitionsFormatter, MissingErrorLocalesFormatter, MissingImportsFormatter, SortLinksFormatter, SyncDaoColumnsFormatter, UnusedLinksFormatter
Class Method Summary collapse
Instance Method Summary collapse
- #call(source, uri) ⇒ Object
-
#initialize(message_queue, index) ⇒ BaseFormatter
constructor
A new instance of BaseFormatter.
Constructor Details
#initialize(message_queue, index) ⇒ BaseFormatter
Returns a new instance of BaseFormatter.
11 12 13 14 |
# File 'lib/ruby_lsp/ruby_lsp_ree/formatters/base_formatter.rb', line 11 def initialize(, index) @message_queue = @index = index end |
Class Method Details
.call(source, uri, message_queue, index) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/ruby_lsp/ruby_lsp_ree/formatters/base_formatter.rb', line 4 def self.call(source, uri, , index) new(, index).call(source, uri) rescue => e $stderr.puts("error in #{self}: #{e.} : #{e.backtrace.first}") source end |
Instance Method Details
#call(source, uri) ⇒ Object
16 17 18 |
# File 'lib/ruby_lsp/ruby_lsp_ree/formatters/base_formatter.rb', line 16 def call(source, uri) raise 'abstract method' end |