instance method WEBrick::HTTPVersion#<=>
self <=> other -> -1 | 0 | 1 | nil-
自身と指定された other のバージョンを比較します。 自身が other より新しいなら 1、同じなら 0、古いなら -1 を返します。 比較できない場合に nil を返します。
- [PARAM] other:
- HTTP のバージョンを表す WEBrick::HTTPVersion オブジェクトか文字列を指定します。
require 'webrick' v = WEBrick::HTTPVersion.new('1.1') p v < '1.0' #=> false
class WEBrick::HTTPVersion