Class: RubyLsp::RbsRails::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_lsp/rbs_rails/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message_queue) ⇒ Logger

Returns a new instance of Logger.



12
13
14
# File 'lib/ruby_lsp/rbs_rails/logger.rb', line 12

def initialize(message_queue) #: void
  @message_queue = message_queue
end

Instance Attribute Details

#message_queueObject (readonly)

: Thread::Queue



9
10
11
# File 'lib/ruby_lsp/rbs_rails/logger.rb', line 9

def message_queue
  @message_queue
end

Instance Method Details

#info(message) ⇒ Object



17
18
19
# File 'lib/ruby_lsp/rbs_rails/logger.rb', line 17

def info(message) #: void
  message_queue << Notification.window_log_message("rbs_rails: #{message}")
end