summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpversion.rbs
blob: 92c8940456eeedb7ddb5d42d6c689059cc6cb0a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module WEBrick
  class HTTPVersion
    include Comparable

    attr_accessor major: Integer

    attr_accessor minor: Integer

    def self.convert: (HTTPVersion | String version) -> instance

    def initialize: (HTTPVersion | String version) -> void

    def <=>: (HTTPVersion | String other) -> Integer?

    def to_s: () -> String
  end
end