Sha256: 2487c588dfdad3630a32269ef4eb867021fb9104ab78fb47e8e2e0ebf6c19b32

Contents?: true

Size: 332 Bytes

Versions: 104

Compression:

Stored size: 332 Bytes

Contents

module Standard
  module Lsp
    class Logger
      def initialize
        @puts_onces = []
      end

      def puts(message)
        warn("[server] #{message}")
      end

      def puts_once(message)
        return if @puts_onces.include?(message)
        @puts_onces << message
        puts(message)
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 3 rubygems

Version Path
harbr-0.1.77 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.76 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.75 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.74 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.73 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.72 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.71 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.70 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.69 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.68 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.67 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.66 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.65 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.64 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.63 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.62 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.61 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.60 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.59 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.58 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb