Sha256: 164a92a55ee4883f7b45a0eadcb0aa3cb0c34020b4f533ccff74de7b0685c0f8

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module RubyLsp
  module Requests
    # :nodoc:
    class BaseRequest < SyntaxTree::Visitor
      def self.run(document)
        new(document).run
      end

      def initialize(document)
        @document = document

        super()
      end

      def run
        raise NotImplementedError, "#{self.class}#run must be implemented"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-lsp-0.0.3 lib/ruby_lsp/requests/base_request.rb