Class: Standard::Lsp::Logger
- Inherits:
-
Object
- Object
- Standard::Lsp::Logger
- Defined in:
- lib/standard/lsp/logger.rb
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
- #puts(message) ⇒ Object
- #puts_once(message) ⇒ Object
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
4 5 6 |
# File 'lib/standard/lsp/logger.rb', line 4 def initialize @puts_onces = [] end |
Instance Method Details
#puts(message) ⇒ Object
8 9 10 |
# File 'lib/standard/lsp/logger.rb', line 8 def puts() warn("[server] #{}") end |
#puts_once(message) ⇒ Object
12 13 14 15 16 |
# File 'lib/standard/lsp/logger.rb', line 12 def puts_once() return if @puts_onces.include?() @puts_onces << puts() end |