rbs 3.8.0 → 3.9.0.dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/comments.yml +3 -3
- data/.github/workflows/dependabot.yml +1 -1
- data/.github/workflows/ruby.yml +7 -7
- data/.github/workflows/typecheck.yml +2 -0
- data/.github/workflows/windows.yml +15 -0
- data/.rubocop.yml +20 -1
- data/CHANGELOG.md +14 -0
- data/Rakefile +5 -2
- data/config.yml +6 -0
- data/core/data.rbs +1 -1
- data/core/enumerator.rbs +14 -2
- data/core/exception.rbs +148 -39
- data/core/gc.rbs +2 -2
- data/core/io.rbs +7 -3
- data/core/kernel.rbs +58 -16
- data/core/method.rbs +2 -2
- data/core/module.rbs +3 -3
- data/core/proc.rbs +2 -2
- data/core/ractor.rbs +4 -1
- data/core/rbs/unnamed/argf.rbs +3 -3
- data/core/regexp.rbs +4 -2
- data/core/ruby_vm.rbs +8 -8
- data/core/rubygems/version.rbs +2 -2
- data/core/string.rbs +1 -1
- data/core/time.rbs +1 -1
- data/core/unbound_method.rbs +1 -1
- data/docs/syntax.md +10 -5
- data/ext/rbs_extension/extconf.rb +2 -1
- data/ext/rbs_extension/location.c +32 -10
- data/ext/rbs_extension/location.h +4 -3
- data/ext/rbs_extension/main.c +22 -1
- data/ext/rbs_extension/parser.c +144 -136
- data/ext/rbs_extension/parserstate.c +40 -9
- data/ext/rbs_extension/parserstate.h +6 -4
- data/include/rbs/ruby_objs.h +6 -6
- data/include/rbs/util/rbs_constant_pool.h +219 -0
- data/lib/rbs/ast/declarations.rb +9 -4
- data/lib/rbs/ast/directives.rb +10 -0
- data/lib/rbs/ast/members.rb +2 -0
- data/lib/rbs/ast/type_param.rb +2 -2
- data/lib/rbs/cli/validate.rb +1 -0
- data/lib/rbs/cli.rb +3 -3
- data/lib/rbs/collection/config/lockfile_generator.rb +28 -7
- data/lib/rbs/collection/sources/rubygems.rb +1 -1
- data/lib/rbs/definition.rb +46 -31
- data/lib/rbs/definition_builder/ancestor_builder.rb +2 -0
- data/lib/rbs/definition_builder.rb +86 -30
- data/lib/rbs/environment.rb +33 -18
- data/lib/rbs/errors.rb +23 -0
- data/lib/rbs/locator.rb +2 -0
- data/lib/rbs/method_type.rb +2 -0
- data/lib/rbs/parser_aux.rb +38 -1
- data/lib/rbs/subtractor.rb +3 -3
- data/lib/rbs/test/hook.rb +2 -2
- data/lib/rbs/test/type_check.rb +7 -5
- data/lib/rbs/types.rb +44 -5
- data/lib/rbs/unit_test/spy.rb +4 -2
- data/lib/rbs/unit_test/type_assertions.rb +17 -11
- data/lib/rbs/validator.rb +4 -0
- data/lib/rbs/version.rb +1 -1
- data/lib/rbs/writer.rb +10 -5
- data/lib/rbs.rb +1 -0
- data/rbs.gemspec +1 -1
- data/sig/collection/config/lockfile_generator.rbs +1 -1
- data/sig/declarations.rbs +10 -3
- data/sig/definition.rbs +67 -14
- data/sig/definition_builder.rbs +17 -3
- data/sig/directives.rbs +17 -1
- data/sig/environment.rbs +2 -0
- data/sig/errors.rbs +16 -0
- data/sig/parser.rbs +5 -1
- data/sig/subtractor.rbs +1 -1
- data/sig/test/type_check.rbs +2 -2
- data/sig/type_param.rbs +1 -1
- data/sig/types.rbs +3 -0
- data/sig/unit_test/spy.rbs +2 -0
- data/sig/unit_test/type_assertions.rbs +2 -0
- data/sig/validator.rbs +4 -0
- data/sig/writer.rbs +1 -1
- data/src/ruby_objs.c +12 -6
- data/src/util/rbs_constant_pool.c +342 -0
- data/stdlib/cgi/0/core.rbs +10 -0
- data/stdlib/json/0/json.rbs +52 -50
- data/stdlib/monitor/0/monitor.rbs +13 -4
- data/stdlib/net-http/0/net-http.rbs +2 -2
- data/stdlib/openssl/0/openssl.rbs +73 -73
- data/stdlib/resolv/0/resolv.rbs +8 -8
- data/stdlib/socket/0/addrinfo.rbs +1 -1
- data/stdlib/socket/0/unix_socket.rbs +4 -2
- data/stdlib/stringio/0/stringio.rbs +1 -1
- data/stdlib/uri/0/common.rbs +17 -0
- metadata +4 -7
- data/templates/include/rbs/constants.h.erb +0 -20
- data/templates/include/rbs/ruby_objs.h.erb +0 -10
- data/templates/src/constants.c.erb +0 -36
- data/templates/src/ruby_objs.c.erb +0 -27
- data/templates/template.rb +0 -122
| @@ -1527,49 +1527,49 @@ module OpenSSL | |
| 1527 1527 | 
             
                #   - bn % bn2 => aBN
         | 
| 1528 1528 | 
             
                # -->
         | 
| 1529 1529 | 
             
                #
         | 
| 1530 | 
            -
                def %: ( | 
| 1530 | 
            +
                def %: (bn) -> self
         | 
| 1531 1531 |  | 
| 1532 1532 | 
             
                # <!--
         | 
| 1533 1533 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1534 1534 | 
             
                #   - bn * bn2 => aBN
         | 
| 1535 1535 | 
             
                # -->
         | 
| 1536 1536 | 
             
                #
         | 
| 1537 | 
            -
                def *: ( | 
| 1537 | 
            +
                def *: (bn) -> self
         | 
| 1538 1538 |  | 
| 1539 1539 | 
             
                # <!--
         | 
| 1540 1540 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1541 1541 | 
             
                #   - bn ** bn2 => aBN
         | 
| 1542 1542 | 
             
                # -->
         | 
| 1543 1543 | 
             
                #
         | 
| 1544 | 
            -
                def **: ( | 
| 1544 | 
            +
                def **: (bn) -> self
         | 
| 1545 1545 |  | 
| 1546 1546 | 
             
                # <!--
         | 
| 1547 1547 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1548 1548 | 
             
                #   - bn + bn2 => aBN
         | 
| 1549 1549 | 
             
                # -->
         | 
| 1550 1550 | 
             
                #
         | 
| 1551 | 
            -
                def +: ( | 
| 1551 | 
            +
                def +: (bn) -> self
         | 
| 1552 1552 |  | 
| 1553 1553 | 
             
                # <!--
         | 
| 1554 1554 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1555 1555 | 
             
                #   - +bn -> aBN
         | 
| 1556 1556 | 
             
                # -->
         | 
| 1557 1557 | 
             
                #
         | 
| 1558 | 
            -
                def +@: () ->  | 
| 1558 | 
            +
                def +@: () -> self
         | 
| 1559 1559 |  | 
| 1560 1560 | 
             
                # <!--
         | 
| 1561 1561 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1562 1562 | 
             
                #   - bn - bn2 => aBN
         | 
| 1563 1563 | 
             
                # -->
         | 
| 1564 1564 | 
             
                #
         | 
| 1565 | 
            -
                def -: ( | 
| 1565 | 
            +
                def -: (bn) -> self
         | 
| 1566 1566 |  | 
| 1567 1567 | 
             
                # <!--
         | 
| 1568 1568 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1569 1569 | 
             
                #   - -bn -> aBN
         | 
| 1570 1570 | 
             
                # -->
         | 
| 1571 1571 | 
             
                #
         | 
| 1572 | 
            -
                def -@: () ->  | 
| 1572 | 
            +
                def -@: () -> self
         | 
| 1573 1573 |  | 
| 1574 1574 | 
             
                # <!--
         | 
| 1575 1575 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1577,14 +1577,14 @@ module OpenSSL | |
| 1577 1577 | 
             
                # -->
         | 
| 1578 1578 | 
             
                # Division of OpenSSL::BN instances
         | 
| 1579 1579 | 
             
                #
         | 
| 1580 | 
            -
                def /: ( | 
| 1580 | 
            +
                def /: (bn) -> [ self, self ]
         | 
| 1581 1581 |  | 
| 1582 1582 | 
             
                # <!--
         | 
| 1583 1583 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1584 1584 | 
             
                #   - bn << bits -> aBN
         | 
| 1585 1585 | 
             
                # -->
         | 
| 1586 1586 | 
             
                #
         | 
| 1587 | 
            -
                def <<: (int) ->  | 
| 1587 | 
            +
                def <<: (int) -> self
         | 
| 1588 1588 |  | 
| 1589 1589 | 
             
                # <!--
         | 
| 1590 1590 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1635,7 +1635,7 @@ module OpenSSL | |
| 1635 1635 | 
             
                #   - bn.cmp(bn2) => integer
         | 
| 1636 1636 | 
             
                # -->
         | 
| 1637 1637 | 
             
                #
         | 
| 1638 | 
            -
                def cmp: ( | 
| 1638 | 
            +
                def cmp: (bn) -> Integer
         | 
| 1639 1639 |  | 
| 1640 1640 | 
             
                # <!--
         | 
| 1641 1641 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1650,7 +1650,7 @@ module OpenSSL | |
| 1650 1650 | 
             
                #   - copy(p1)
         | 
| 1651 1651 | 
             
                # -->
         | 
| 1652 1652 | 
             
                #
         | 
| 1653 | 
            -
                def copy: ( | 
| 1653 | 
            +
                def copy: (bn) -> self
         | 
| 1654 1654 |  | 
| 1655 1655 | 
             
                # <!--
         | 
| 1656 1656 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1666,7 +1666,7 @@ module OpenSSL | |
| 1666 1666 | 
             
                #   - bn.gcd(bn2) => aBN
         | 
| 1667 1667 | 
             
                # -->
         | 
| 1668 1668 | 
             
                #
         | 
| 1669 | 
            -
                def gcd: ( | 
| 1669 | 
            +
                def gcd: (bn) -> self
         | 
| 1670 1670 |  | 
| 1671 1671 | 
             
                # <!--
         | 
| 1672 1672 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1692,42 +1692,42 @@ module OpenSSL | |
| 1692 1692 | 
             
                #   - bn.mod_add(bn1, bn2) -> aBN
         | 
| 1693 1693 | 
             
                # -->
         | 
| 1694 1694 | 
             
                #
         | 
| 1695 | 
            -
                def mod_add: ( | 
| 1695 | 
            +
                def mod_add: (bn, bn) -> self
         | 
| 1696 1696 |  | 
| 1697 1697 | 
             
                # <!--
         | 
| 1698 1698 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1699 1699 | 
             
                #   - bn.mod_exp(bn1, bn2) -> aBN
         | 
| 1700 1700 | 
             
                # -->
         | 
| 1701 1701 | 
             
                #
         | 
| 1702 | 
            -
                def mod_exp: ( | 
| 1702 | 
            +
                def mod_exp: (bn, bn) -> self
         | 
| 1703 1703 |  | 
| 1704 1704 | 
             
                # <!--
         | 
| 1705 1705 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1706 1706 | 
             
                #   - bn.mod_inverse(bn2) => aBN
         | 
| 1707 1707 | 
             
                # -->
         | 
| 1708 1708 | 
             
                #
         | 
| 1709 | 
            -
                def mod_inverse: ( | 
| 1709 | 
            +
                def mod_inverse: (bn) -> self
         | 
| 1710 1710 |  | 
| 1711 1711 | 
             
                # <!--
         | 
| 1712 1712 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1713 1713 | 
             
                #   - bn.mod_mul(bn1, bn2) -> aBN
         | 
| 1714 1714 | 
             
                # -->
         | 
| 1715 1715 | 
             
                #
         | 
| 1716 | 
            -
                def mod_mul: ( | 
| 1716 | 
            +
                def mod_mul: (bn, bn) -> self
         | 
| 1717 1717 |  | 
| 1718 1718 | 
             
                # <!--
         | 
| 1719 1719 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1720 1720 | 
             
                #   - bn.mod_sqr(bn2) => aBN
         | 
| 1721 1721 | 
             
                # -->
         | 
| 1722 1722 | 
             
                #
         | 
| 1723 | 
            -
                def mod_sqr: ( | 
| 1723 | 
            +
                def mod_sqr: (bn) -> self
         | 
| 1724 1724 |  | 
| 1725 1725 | 
             
                # <!--
         | 
| 1726 1726 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| 1727 1727 | 
             
                #   - bn.mod_sub(bn1, bn2) -> aBN
         | 
| 1728 1728 | 
             
                # -->
         | 
| 1729 1729 | 
             
                #
         | 
| 1730 | 
            -
                def mod_sub: ( | 
| 1730 | 
            +
                def mod_sub: (bn, bn) -> self
         | 
| 1731 1731 |  | 
| 1732 1732 | 
             
                # <!--
         | 
| 1733 1733 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1815,7 +1815,7 @@ module OpenSSL | |
| 1815 1815 | 
             
                #   - bn.sqr => aBN
         | 
| 1816 1816 | 
             
                # -->
         | 
| 1817 1817 | 
             
                #
         | 
| 1818 | 
            -
                def sqr: () ->  | 
| 1818 | 
            +
                def sqr: () -> self
         | 
| 1819 1819 |  | 
| 1820 1820 | 
             
                # <!--
         | 
| 1821 1821 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1868,7 +1868,7 @@ module OpenSSL | |
| 1868 1868 | 
             
                #   - bn.ucmp(bn2) => integer
         | 
| 1869 1869 | 
             
                # -->
         | 
| 1870 1870 | 
             
                #
         | 
| 1871 | 
            -
                def ucmp: ( | 
| 1871 | 
            +
                def ucmp: (bn bn2) -> ::Integer
         | 
| 1872 1872 |  | 
| 1873 1873 | 
             
                # <!--
         | 
| 1874 1874 | 
             
                #   rdoc-file=ext/openssl/ossl_bn.c
         | 
| @@ -1906,8 +1906,8 @@ module OpenSSL | |
| 1906 1906 | 
             
                #     *   `16` - Hexadecimal number representation, with a leading '-' for a
         | 
| 1907 1907 | 
             
                #         negative number.
         | 
| 1908 1908 | 
             
                #
         | 
| 1909 | 
            -
                def initialize: ( | 
| 1910 | 
            -
                              | ( | 
| 1909 | 
            +
                def initialize: (self) -> void
         | 
| 1910 | 
            +
                              | (Integer) -> void
         | 
| 1911 1911 | 
             
                              | (string) -> void
         | 
| 1912 1912 | 
             
                              | (string, 0 | 2 | 10 | 16) -> void
         | 
| 1913 1913 |  | 
| @@ -1916,7 +1916,7 @@ module OpenSSL | |
| 1916 1916 | 
             
                #   - initialize_copy(p1)
         | 
| 1917 1917 | 
             
                # -->
         | 
| 1918 1918 | 
             
                #
         | 
| 1919 | 
            -
                def initialize_copy: ( | 
| 1919 | 
            +
                def initialize_copy: (self other) -> self
         | 
| 1920 1920 | 
             
              end
         | 
| 1921 1921 |  | 
| 1922 1922 | 
             
              # <!-- rdoc-file=ext/openssl/ossl_bn.c -->
         | 
| @@ -2025,7 +2025,7 @@ module OpenSSL | |
| 2025 2025 | 
             
                #
         | 
| 2026 2026 | 
             
                # Unlike IO#gets the separator must be provided if a limit is provided.
         | 
| 2027 2027 | 
             
                #
         | 
| 2028 | 
            -
                def gets: (?String | Regexp eol, ?Integer limit) -> String?
         | 
| 2028 | 
            +
                def gets: (?String | Regexp eol, ?Integer limit, ?chomp: boolish) -> String?
         | 
| 2029 2029 |  | 
| 2030 2030 | 
             
                # <!--
         | 
| 2031 2031 | 
             
                #   rdoc-file=ext/openssl/lib/openssl/buffering.rb
         | 
| @@ -3069,7 +3069,7 @@ module OpenSSL | |
| 3069 3069 | 
             
                #   - initialize_copy(p1)
         | 
| 3070 3070 | 
             
                # -->
         | 
| 3071 3071 | 
             
                #
         | 
| 3072 | 
            -
                def initialize_copy: ( | 
| 3072 | 
            +
                def initialize_copy: (self other) -> void
         | 
| 3073 3073 |  | 
| 3074 3074 | 
             
                # <!-- rdoc-file=ext/openssl/ossl_config.c -->
         | 
| 3075 3075 | 
             
                # The default system configuration file for OpenSSL.
         | 
| @@ -3287,7 +3287,7 @@ module OpenSSL | |
| 3287 3287 | 
             
                #   - initialize_copy(p1)
         | 
| 3288 3288 | 
             
                # -->
         | 
| 3289 3289 | 
             
                #
         | 
| 3290 | 
            -
                def initialize_copy: ( | 
| 3290 | 
            +
                def initialize_copy: (self) -> void
         | 
| 3291 3291 |  | 
| 3292 3292 | 
             
                class Digest < OpenSSL::Digest
         | 
| 3293 3293 | 
             
                end
         | 
| @@ -3700,7 +3700,7 @@ module OpenSSL | |
| 3700 3700 | 
             
                # -->
         | 
| 3701 3701 | 
             
                # Securely compare with another HMAC instance in constant time.
         | 
| 3702 3702 | 
             
                #
         | 
| 3703 | 
            -
                def ==: ( | 
| 3703 | 
            +
                def ==: (self other) -> bool
         | 
| 3704 3704 |  | 
| 3705 3705 | 
             
                # <!--
         | 
| 3706 3706 | 
             
                #   rdoc-file=ext/openssl/ossl_hmac.c
         | 
| @@ -3835,7 +3835,7 @@ module OpenSSL | |
| 3835 3835 | 
             
                #   - initialize_copy(p1)
         | 
| 3836 3836 | 
             
                # -->
         | 
| 3837 3837 | 
             
                #
         | 
| 3838 | 
            -
                def initialize_copy: ( | 
| 3838 | 
            +
                def initialize_copy: (self) -> void
         | 
| 3839 3839 | 
             
              end
         | 
| 3840 3840 |  | 
| 3841 3841 | 
             
              # <!-- rdoc-file=ext/openssl/ossl_hmac.c -->
         | 
| @@ -4168,7 +4168,7 @@ module OpenSSL | |
| 4168 4168 | 
             
                  # instance should be used, in addition to a digest algorithm in the form of an
         | 
| 4169 4169 | 
             
                  # OpenSSL::Digest. The private key should be an instance of OpenSSL::PKey.
         | 
| 4170 4170 | 
             
                  #
         | 
| 4171 | 
            -
                  def sign: (PKey::PKey key, Digest digest) ->  | 
| 4171 | 
            +
                  def sign: (PKey::PKey key, Digest digest) -> self
         | 
| 4172 4172 |  | 
| 4173 4173 | 
             
                  # <!--
         | 
| 4174 4174 | 
             
                  #   rdoc-file=ext/openssl/ossl_ns_spki.c
         | 
| @@ -4632,7 +4632,7 @@ module OpenSSL | |
| 4632 4632 | 
             
                  #   - initialize_copy(p1)
         | 
| 4633 4633 | 
             
                  # -->
         | 
| 4634 4634 | 
             
                  #
         | 
| 4635 | 
            -
                  def initialize_copy: ( | 
| 4635 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 4636 4636 | 
             
                end
         | 
| 4637 4637 |  | 
| 4638 4638 | 
             
                # <!-- rdoc-file=ext/openssl/ossl_ocsp.c -->
         | 
| @@ -4647,7 +4647,7 @@ module OpenSSL | |
| 4647 4647 | 
             
                  # Compares this certificate id with *other* and returns `true` if they are the
         | 
| 4648 4648 | 
             
                  # same.
         | 
| 4649 4649 | 
             
                  #
         | 
| 4650 | 
            -
                  def cmp: ( | 
| 4650 | 
            +
                  def cmp: (self other) -> bool
         | 
| 4651 4651 |  | 
| 4652 4652 | 
             
                  # <!--
         | 
| 4653 4653 | 
             
                  #   rdoc-file=ext/openssl/ossl_ocsp.c
         | 
| @@ -4656,7 +4656,7 @@ module OpenSSL | |
| 4656 4656 | 
             
                  # Compares this certificate id's issuer with *other* and returns `true` if they
         | 
| 4657 4657 | 
             
                  # are the same.
         | 
| 4658 4658 | 
             
                  #
         | 
| 4659 | 
            -
                  def cmp_issuer: ( | 
| 4659 | 
            +
                  def cmp_issuer: (self other) -> bool
         | 
| 4660 4660 |  | 
| 4661 4661 | 
             
                  # <!--
         | 
| 4662 4662 | 
             
                  #   rdoc-file=ext/openssl/ossl_ocsp.c
         | 
| @@ -4726,7 +4726,7 @@ module OpenSSL | |
| 4726 4726 | 
             
                  #   - initialize_copy(p1)
         | 
| 4727 4727 | 
             
                  # -->
         | 
| 4728 4728 | 
             
                  #
         | 
| 4729 | 
            -
                  def initialize_copy: ( | 
| 4729 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 4730 4730 | 
             
                end
         | 
| 4731 4731 |  | 
| 4732 4732 | 
             
                # <!-- rdoc-file=ext/openssl/ossl_ocsp.c -->
         | 
| @@ -4864,7 +4864,7 @@ module OpenSSL | |
| 4864 4864 | 
             
                  #   - initialize_copy(p1)
         | 
| 4865 4865 | 
             
                  # -->
         | 
| 4866 4866 | 
             
                  #
         | 
| 4867 | 
            -
                  def initialize_copy: ( | 
| 4867 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 4868 4868 | 
             
                end
         | 
| 4869 4869 |  | 
| 4870 4870 | 
             
                # <!-- rdoc-file=ext/openssl/ossl_ocsp.c -->
         | 
| @@ -4929,7 +4929,7 @@ module OpenSSL | |
| 4929 4929 | 
             
                  #   - initialize_copy(p1)
         | 
| 4930 4930 | 
             
                  # -->
         | 
| 4931 4931 | 
             
                  #
         | 
| 4932 | 
            -
                  def initialize_copy: ( | 
| 4932 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 4933 4933 | 
             
                end
         | 
| 4934 4934 |  | 
| 4935 4935 | 
             
                # <!-- rdoc-file=ext/openssl/ossl_ocsp.c -->
         | 
| @@ -5037,7 +5037,7 @@ module OpenSSL | |
| 5037 5037 | 
             
                  #   - initialize_copy(p1)
         | 
| 5038 5038 | 
             
                  # -->
         | 
| 5039 5039 | 
             
                  #
         | 
| 5040 | 
            -
                  def initialize_copy: ( | 
| 5040 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 5041 5041 | 
             
                end
         | 
| 5042 5042 | 
             
              end
         | 
| 5043 5043 |  | 
| @@ -5110,7 +5110,7 @@ module OpenSSL | |
| 5110 5110 | 
             
                #   - initialize_copy(p1)
         | 
| 5111 5111 | 
             
                # -->
         | 
| 5112 5112 | 
             
                #
         | 
| 5113 | 
            -
                def initialize_copy: ( | 
| 5113 | 
            +
                def initialize_copy: (self) -> void
         | 
| 5114 5114 |  | 
| 5115 5115 | 
             
                class PKCS12Error < OpenSSL::OpenSSLError
         | 
| 5116 5116 | 
             
                end
         | 
| @@ -5357,7 +5357,7 @@ module OpenSSL | |
| 5357 5357 | 
             
                #   - initialize_copy(p1)
         | 
| 5358 5358 | 
             
                # -->
         | 
| 5359 5359 | 
             
                #
         | 
| 5360 | 
            -
                def initialize_copy: ( | 
| 5360 | 
            +
                def initialize_copy: (self) -> untyped
         | 
| 5361 5361 |  | 
| 5362 5362 | 
             
                BINARY: Integer
         | 
| 5363 5363 |  | 
| @@ -5648,7 +5648,7 @@ module OpenSSL | |
| 5648 5648 | 
             
                  # Stores all parameters of key to the hash INSECURE: PRIVATE INFORMATIONS CAN
         | 
| 5649 5649 | 
             
                  # LEAK OUT!!! Don't use :-)) (I's up to you)
         | 
| 5650 5650 | 
             
                  #
         | 
| 5651 | 
            -
                  def params: () -> Hash[String, BN]
         | 
| 5651 | 
            +
                  def params: () -> Hash[String, BN?]
         | 
| 5652 5652 |  | 
| 5653 5653 | 
             
                  # <!--
         | 
| 5654 5654 | 
             
                  #   rdoc-file=ext/openssl/ossl_pkey_dh.c
         | 
| @@ -5706,7 +5706,7 @@ module OpenSSL | |
| 5706 5706 | 
             
                  #     dhcopy = dh1.public_key
         | 
| 5707 5707 | 
             
                  #     p dhcopy.priv_key #=> nil
         | 
| 5708 5708 | 
             
                  #
         | 
| 5709 | 
            -
                  def public_key: () ->  | 
| 5709 | 
            +
                  def public_key: () -> self
         | 
| 5710 5710 |  | 
| 5711 5711 | 
             
                  def q: () -> BN
         | 
| 5712 5712 |  | 
| @@ -5837,7 +5837,7 @@ module OpenSSL | |
| 5837 5837 | 
             
                  #   - initialize_copy(p1)
         | 
| 5838 5838 | 
             
                  # -->
         | 
| 5839 5839 | 
             
                  #
         | 
| 5840 | 
            -
                  def initialize_copy: ( | 
| 5840 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 5841 5841 | 
             
                end
         | 
| 5842 5842 |  | 
| 5843 5843 | 
             
                # <!-- rdoc-file=ext/openssl/ossl_pkey_dh.c -->
         | 
| @@ -5942,7 +5942,7 @@ module OpenSSL | |
| 5942 5942 | 
             
                  # Stores all parameters of key to the hash INSECURE: PRIVATE INFORMATIONS CAN
         | 
| 5943 5943 | 
             
                  # LEAK OUT!!! Don't use :-)) (I's up to you)
         | 
| 5944 5944 | 
             
                  #
         | 
| 5945 | 
            -
                  def params: () -> Hash[String, BN]
         | 
| 5945 | 
            +
                  def params: () -> Hash[String, BN?]
         | 
| 5946 5946 |  | 
| 5947 5947 | 
             
                  def priv_key: () -> BN
         | 
| 5948 5948 |  | 
| @@ -5979,7 +5979,7 @@ module OpenSSL | |
| 5979 5979 | 
             
                  # For the purpose of serializing the public key, to PEM or DER encoding of X.509
         | 
| 5980 5980 | 
             
                  # SubjectPublicKeyInfo format, check PKey#public_to_pem and PKey#public_to_der.
         | 
| 5981 5981 | 
             
                  #
         | 
| 5982 | 
            -
                  def public_key: () ->  | 
| 5982 | 
            +
                  def public_key: () -> self
         | 
| 5983 5983 |  | 
| 5984 5984 | 
             
                  def q: () -> BN
         | 
| 5985 5985 |  | 
| @@ -6226,7 +6226,7 @@ module OpenSSL | |
| 6226 6226 | 
             
                  #   - initialize_copy(p1)
         | 
| 6227 6227 | 
             
                  # -->
         | 
| 6228 6228 | 
             
                  #
         | 
| 6229 | 
            -
                  def initialize_copy: ( | 
| 6229 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 6230 6230 | 
             
                end
         | 
| 6231 6231 |  | 
| 6232 6232 | 
             
                # <!-- rdoc-file=ext/openssl/ossl_pkey_dsa.c -->
         | 
| @@ -6574,7 +6574,7 @@ module OpenSSL | |
| 6574 6574 | 
             
                  # Creates a new EC object from given arguments.
         | 
| 6575 6575 | 
             
                  #
         | 
| 6576 6576 | 
             
                  def initialize: () -> void
         | 
| 6577 | 
            -
                                | ( | 
| 6577 | 
            +
                                | (self ec_key) -> void
         | 
| 6578 6578 | 
             
                                | (Group group) -> void
         | 
| 6579 6579 | 
             
                                | (String pem_or_der_or_curve, ?String pass) -> void
         | 
| 6580 6580 |  | 
| @@ -6583,7 +6583,7 @@ module OpenSSL | |
| 6583 6583 | 
             
                  #   - initialize_copy(p1)
         | 
| 6584 6584 | 
             
                  # -->
         | 
| 6585 6585 | 
             
                  #
         | 
| 6586 | 
            -
                  def initialize_copy: ( | 
| 6586 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 6587 6587 |  | 
| 6588 6588 | 
             
                  EXPLICIT_CURVE: Integer
         | 
| 6589 6589 |  | 
| @@ -6662,7 +6662,7 @@ module OpenSSL | |
| 6662 6662 | 
             
                    # Returns `true` if the two groups use the same curve and have the same
         | 
| 6663 6663 | 
             
                    # parameters, `false` otherwise.
         | 
| 6664 6664 | 
             
                    #
         | 
| 6665 | 
            -
                    def eql?: ( | 
| 6665 | 
            +
                    def eql?: (self other) -> bool
         | 
| 6666 6666 |  | 
| 6667 6667 | 
             
                    # <!--
         | 
| 6668 6668 | 
             
                    #   rdoc-file=ext/openssl/ossl_pkey_ec.c
         | 
| @@ -6783,7 +6783,7 @@ module OpenSSL | |
| 6783 6783 | 
             
                    # If the first argument is :GFp or :GF2m, creates a new curve with given
         | 
| 6784 6784 | 
             
                    # parameters.
         | 
| 6785 6785 | 
             
                    #
         | 
| 6786 | 
            -
                    def initialize: ( | 
| 6786 | 
            +
                    def initialize: (self group) -> void
         | 
| 6787 6787 | 
             
                                  | (String pem_or_der_encoded) -> void
         | 
| 6788 6788 | 
             
                                  | (ec_method ec_method) -> void
         | 
| 6789 6789 | 
             
                                  | (:GFp | :GF2m ec_method, Integer bignum_p, Integer bignum_a, Integer bignum_b) -> void
         | 
| @@ -6793,7 +6793,7 @@ module OpenSSL | |
| 6793 6793 | 
             
                    #   - initialize_copy(p1)
         | 
| 6794 6794 | 
             
                    # -->
         | 
| 6795 6795 | 
             
                    #
         | 
| 6796 | 
            -
                    def initialize_copy: ( | 
| 6796 | 
            +
                    def initialize_copy: (self) -> void
         | 
| 6797 6797 |  | 
| 6798 6798 | 
             
                    class Error < OpenSSL::OpenSSLError
         | 
| 6799 6799 | 
             
                    end
         | 
| @@ -6813,7 +6813,7 @@ module OpenSSL | |
| 6813 6813 | 
             
                    # -->
         | 
| 6814 6814 | 
             
                    # Performs elliptic curve point addition.
         | 
| 6815 6815 | 
             
                    #
         | 
| 6816 | 
            -
                    def add: ( | 
| 6816 | 
            +
                    def add: (self point) -> self
         | 
| 6817 6817 |  | 
| 6818 6818 | 
             
                    # <!--
         | 
| 6819 6819 | 
             
                    #   rdoc-file=ext/openssl/ossl_pkey_ec.c
         | 
| @@ -6821,7 +6821,7 @@ module OpenSSL | |
| 6821 6821 | 
             
                    #   - point1 == point2 => true | false
         | 
| 6822 6822 | 
             
                    # -->
         | 
| 6823 6823 | 
             
                    #
         | 
| 6824 | 
            -
                    def eql?: ( | 
| 6824 | 
            +
                    def eql?: (self other) -> bool
         | 
| 6825 6825 |  | 
| 6826 6826 | 
             
                    def group: () -> Group
         | 
| 6827 6827 |  | 
| @@ -6863,8 +6863,8 @@ module OpenSSL | |
| 6863 6863 | 
             
                    # of OpenSSL::BN. *points* must be an array of OpenSSL::PKey::EC::Point. Please
         | 
| 6864 6864 | 
             
                    # note that `points[0]` is not multiplied by `bns[0]`, but `bns[1]`.
         | 
| 6865 6865 | 
             
                    #
         | 
| 6866 | 
            -
                    def mul: (bn bn1, ?bn bn2) ->  | 
| 6867 | 
            -
                           | (Array[bn] bns, Array[ | 
| 6866 | 
            +
                    def mul: (bn bn1, ?bn bn2) -> self
         | 
| 6867 | 
            +
                           | (Array[bn] bns, Array[self], ?bn bn2) -> self
         | 
| 6868 6868 |  | 
| 6869 6869 | 
             
                    # <!--
         | 
| 6870 6870 | 
             
                    #   rdoc-file=ext/openssl/ossl_pkey_ec.c
         | 
| @@ -6922,7 +6922,7 @@ module OpenSSL | |
| 6922 6922 | 
             
                    # *encoded_point* is the octet string representation of the point. This must be
         | 
| 6923 6923 | 
             
                    # either a String or an OpenSSL::BN.
         | 
| 6924 6924 | 
             
                    #
         | 
| 6925 | 
            -
                    def initialize: ( | 
| 6925 | 
            +
                    def initialize: (self point) -> void
         | 
| 6926 6926 | 
             
                                  | (Group group, ?String | BN encoded_point) -> void
         | 
| 6927 6927 |  | 
| 6928 6928 | 
             
                    # <!--
         | 
| @@ -6930,7 +6930,7 @@ module OpenSSL | |
| 6930 6930 | 
             
                    #   - initialize_copy(p1)
         | 
| 6931 6931 | 
             
                    # -->
         | 
| 6932 6932 | 
             
                    #
         | 
| 6933 | 
            -
                    def initialize_copy: ( | 
| 6933 | 
            +
                    def initialize_copy: (self) -> void
         | 
| 6934 6934 |  | 
| 6935 6935 | 
             
                    class Error < OpenSSL::OpenSSLError
         | 
| 6936 6936 | 
             
                    end
         | 
| @@ -7220,7 +7220,7 @@ module OpenSSL | |
| 7220 7220 | 
             
                  #
         | 
| 7221 7221 | 
             
                  # Don't use :-)) (It's up to you)
         | 
| 7222 7222 | 
             
                  #
         | 
| 7223 | 
            -
                  def params: () -> Hash[String, BN]
         | 
| 7223 | 
            +
                  def params: () -> Hash[String, BN?]
         | 
| 7224 7224 |  | 
| 7225 7225 | 
             
                  # <!--
         | 
| 7226 7226 | 
             
                  #   rdoc-file=ext/openssl/ossl_pkey_rsa.c
         | 
| @@ -7307,7 +7307,7 @@ module OpenSSL | |
| 7307 7307 | 
             
                  # For the purpose of serializing the public key, to PEM or DER encoding of X.509
         | 
| 7308 7308 | 
             
                  # SubjectPublicKeyInfo format, check PKey#public_to_pem and PKey#public_to_der.
         | 
| 7309 7309 | 
             
                  #
         | 
| 7310 | 
            -
                  def public_key: () ->  | 
| 7310 | 
            +
                  def public_key: () -> self
         | 
| 7311 7311 |  | 
| 7312 7312 | 
             
                  def q: () -> BN?
         | 
| 7313 7313 |  | 
| @@ -7575,7 +7575,7 @@ module OpenSSL | |
| 7575 7575 | 
             
                  #   - initialize_copy(p1)
         | 
| 7576 7576 | 
             
                  # -->
         | 
| 7577 7577 | 
             
                  #
         | 
| 7578 | 
            -
                  def initialize_copy: ( | 
| 7578 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 7579 7579 |  | 
| 7580 7580 | 
             
                  NO_PADDING: Integer
         | 
| 7581 7581 |  | 
| @@ -9279,7 +9279,7 @@ module OpenSSL | |
| 9279 9279 | 
             
                  # -->
         | 
| 9280 9280 | 
             
                  # Returns `true` if the two Session is the same, `false` if not.
         | 
| 9281 9281 | 
             
                  #
         | 
| 9282 | 
            -
                  def ==: ( | 
| 9282 | 
            +
                  def ==: (self other) -> bool
         | 
| 9283 9283 |  | 
| 9284 9284 | 
             
                  # <!--
         | 
| 9285 9285 | 
             
                  #   rdoc-file=ext/openssl/ossl_ssl_session.c
         | 
| @@ -9364,7 +9364,7 @@ module OpenSSL | |
| 9364 9364 | 
             
                  #   - initialize_copy(p1)
         | 
| 9365 9365 | 
             
                  # -->
         | 
| 9366 9366 | 
             
                  #
         | 
| 9367 | 
            -
                  def initialize_copy: ( | 
| 9367 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 9368 9368 |  | 
| 9369 9369 | 
             
                  class SessionError < OpenSSL::OpenSSLError
         | 
| 9370 9370 | 
             
                  end
         | 
| @@ -9867,7 +9867,7 @@ module OpenSSL | |
| 9867 9867 | 
             
                  #     it is not conformant to the Request, or if validation of the timestamp
         | 
| 9868 9868 | 
             
                  #     certificate chain fails.
         | 
| 9869 9869 | 
             
                  #
         | 
| 9870 | 
            -
                  def verify: (Request request, X509::Store store, ?X509::Certificate intermediate_cert) ->  | 
| 9870 | 
            +
                  def verify: (Request request, X509::Store store, ?X509::Certificate intermediate_cert) -> self
         | 
| 9871 9871 |  | 
| 9872 9872 | 
             
                  private
         | 
| 9873 9873 |  | 
| @@ -10301,7 +10301,7 @@ module OpenSSL | |
| 10301 10301 | 
             
                  #   - ==(other)
         | 
| 10302 10302 | 
             
                  # -->
         | 
| 10303 10303 | 
             
                  #
         | 
| 10304 | 
            -
                  def ==: ( | 
| 10304 | 
            +
                  def ==: (self other) -> bool
         | 
| 10305 10305 |  | 
| 10306 10306 | 
             
                  # <!--
         | 
| 10307 10307 | 
             
                  #   rdoc-file=ext/openssl/ossl_x509attr.c
         | 
| @@ -10353,7 +10353,7 @@ module OpenSSL | |
| 10353 10353 | 
             
                  #   - initialize_copy(p1)
         | 
| 10354 10354 | 
             
                  # -->
         | 
| 10355 10355 | 
             
                  #
         | 
| 10356 | 
            -
                  def initialize_copy: ( | 
| 10356 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 10357 10357 | 
             
                end
         | 
| 10358 10358 |  | 
| 10359 10359 | 
             
                class AttributeError < OpenSSL::OpenSSLError
         | 
| @@ -10371,7 +10371,7 @@ module OpenSSL | |
| 10371 10371 | 
             
                  #   - ==(other)
         | 
| 10372 10372 | 
             
                  # -->
         | 
| 10373 10373 | 
             
                  #
         | 
| 10374 | 
            -
                  def ==: ( | 
| 10374 | 
            +
                  def ==: (self other) -> bool
         | 
| 10375 10375 |  | 
| 10376 10376 | 
             
                  # <!--
         | 
| 10377 10377 | 
             
                  #   rdoc-file=ext/openssl/ossl_x509crl.c
         | 
| @@ -10536,7 +10536,7 @@ module OpenSSL | |
| 10536 10536 | 
             
                  #   - initialize_copy(p1)
         | 
| 10537 10537 | 
             
                  # -->
         | 
| 10538 10538 | 
             
                  #
         | 
| 10539 | 
            -
                  def initialize_copy: ( | 
| 10539 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 10540 10540 | 
             
                end
         | 
| 10541 10541 |  | 
| 10542 10542 | 
             
                class CRLError < OpenSSL::OpenSSLError
         | 
| @@ -10649,7 +10649,7 @@ module OpenSSL | |
| 10649 10649 | 
             
                  # Compares the two certificates. Note that this takes into account all fields,
         | 
| 10650 10650 | 
             
                  # not just the issuer name and the serial number.
         | 
| 10651 10651 | 
             
                  #
         | 
| 10652 | 
            -
                  def ==: ( | 
| 10652 | 
            +
                  def ==: (self other) -> bool
         | 
| 10653 10653 |  | 
| 10654 10654 | 
             
                  # <!--
         | 
| 10655 10655 | 
             
                  #   rdoc-file=ext/openssl/ossl_x509cert.c
         | 
| @@ -10859,7 +10859,7 @@ module OpenSSL | |
| 10859 10859 | 
             
                  #   - initialize_copy(p1)
         | 
| 10860 10860 | 
             
                  # -->
         | 
| 10861 10861 | 
             
                  #
         | 
| 10862 | 
            -
                  def initialize_copy: ( | 
| 10862 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 10863 10863 | 
             
                end
         | 
| 10864 10864 |  | 
| 10865 10865 | 
             
                class CertificateError < OpenSSL::OpenSSLError
         | 
| @@ -10875,7 +10875,7 @@ module OpenSSL | |
| 10875 10875 | 
             
                  #   - ==(other)
         | 
| 10876 10876 | 
             
                  # -->
         | 
| 10877 10877 | 
             
                  #
         | 
| 10878 | 
            -
                  def ==: ( | 
| 10878 | 
            +
                  def ==: (self other) -> bool
         | 
| 10879 10879 |  | 
| 10880 10880 | 
             
                  # <!--
         | 
| 10881 10881 | 
             
                  #   rdoc-file=ext/openssl/ossl_x509ext.c
         | 
| @@ -10976,7 +10976,7 @@ module OpenSSL | |
| 10976 10976 | 
             
                  #   - initialize_copy(p1)
         | 
| 10977 10977 | 
             
                  # -->
         | 
| 10978 10978 | 
             
                  #
         | 
| 10979 | 
            -
                  def initialize_copy: ( | 
| 10979 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 10980 10980 |  | 
| 10981 10981 | 
             
                  module AuthorityInfoAccess
         | 
| 10982 10982 | 
             
                    include OpenSSL::X509::Extension::Helpers
         | 
| @@ -11278,7 +11278,7 @@ module OpenSSL | |
| 11278 11278 | 
             
                  # -->
         | 
| 11279 11279 | 
             
                  # Returns true if *name* and *other* refer to the same hash key.
         | 
| 11280 11280 | 
             
                  #
         | 
| 11281 | 
            -
                  def eql?: ( | 
| 11281 | 
            +
                  def eql?: (self other) -> bool
         | 
| 11282 11282 |  | 
| 11283 11283 | 
             
                  # <!--
         | 
| 11284 11284 | 
             
                  #   rdoc-file=ext/openssl/ossl_x509name.c
         | 
| @@ -11385,7 +11385,7 @@ module OpenSSL | |
| 11385 11385 | 
             
                  #   - initialize_copy(p1)
         | 
| 11386 11386 | 
             
                  # -->
         | 
| 11387 11387 | 
             
                  #
         | 
| 11388 | 
            -
                  def initialize_copy: ( | 
| 11388 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 11389 11389 |  | 
| 11390 11390 | 
             
                  # <!-- rdoc-file=ext/openssl/ossl_x509name.c -->
         | 
| 11391 11391 | 
             
                  # A flag for #to_s.
         | 
| @@ -11630,7 +11630,7 @@ module OpenSSL | |
| 11630 11630 | 
             
                  #   - initialize_copy(p1)
         | 
| 11631 11631 | 
             
                  # -->
         | 
| 11632 11632 | 
             
                  #
         | 
| 11633 | 
            -
                  def initialize_copy: ( | 
| 11633 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 11634 11634 | 
             
                end
         | 
| 11635 11635 |  | 
| 11636 11636 | 
             
                class RequestError < OpenSSL::OpenSSLError
         | 
| @@ -11716,7 +11716,7 @@ module OpenSSL | |
| 11716 11716 | 
             
                  #   - initialize_copy(p1)
         | 
| 11717 11717 | 
             
                  # -->
         | 
| 11718 11718 | 
             
                  #
         | 
| 11719 | 
            -
                  def initialize_copy: ( | 
| 11719 | 
            +
                  def initialize_copy: (self) -> void
         | 
| 11720 11720 | 
             
                end
         | 
| 11721 11721 |  | 
| 11722 11722 | 
             
                class RevokedError < OpenSSL::OpenSSLError
         | 
    
        data/stdlib/resolv/0/resolv.rbs
    CHANGED
    
    | @@ -466,7 +466,7 @@ end | |
| 466 466 | 
             
            class Resolv::DNS::Message
         | 
| 467 467 | 
             
              def self.decode: (String m) -> instance
         | 
| 468 468 |  | 
| 469 | 
            -
              def ==: ( | 
| 469 | 
            +
              def ==: (self other) -> bool
         | 
| 470 470 |  | 
| 471 471 | 
             
              def aa: () -> Integer
         | 
| 472 472 |  | 
| @@ -558,7 +558,7 @@ class Resolv::DNS::Message::MessageDecoder | |
| 558 558 |  | 
| 559 559 | 
             
              private
         | 
| 560 560 |  | 
| 561 | 
            -
              def initialize: (String data) { ( | 
| 561 | 
            +
              def initialize: (String data) { (self) -> void } -> untyped
         | 
| 562 562 | 
             
            end
         | 
| 563 563 |  | 
| 564 564 | 
             
            class Resolv::DNS::Message::MessageEncoder
         | 
| @@ -603,7 +603,7 @@ class Resolv::DNS::Name | |
| 603 603 | 
             
              #
         | 
| 604 604 | 
             
              def self.create: (Resolv::DNS::dns_name arg) -> untyped
         | 
| 605 605 |  | 
| 606 | 
            -
              def ==: ( | 
| 606 | 
            +
              def ==: (self other) -> bool
         | 
| 607 607 |  | 
| 608 608 | 
             
              def []: (Integer i) -> Resolv::DNS::Label::Str?
         | 
| 609 609 |  | 
| @@ -639,7 +639,7 @@ class Resolv::DNS::Name | |
| 639 639 | 
             
              #     p Resolv::DNS::Name.create("x.y.z.").subdomain_of?(domain) #=> false
         | 
| 640 640 | 
             
              #     p Resolv::DNS::Name.create("w.z").subdomain_of?(domain) #=> false
         | 
| 641 641 | 
             
              #
         | 
| 642 | 
            -
              def subdomain_of?: ( | 
| 642 | 
            +
              def subdomain_of?: (self other) -> bool
         | 
| 643 643 |  | 
| 644 644 | 
             
              def to_a: () -> Array[Resolv::DNS::Label::Str]
         | 
| 645 645 |  | 
| @@ -1491,14 +1491,14 @@ class Resolv::IPv4 | |
| 1491 1491 | 
             
              #
         | 
| 1492 1492 | 
             
              def self.create: (String | instance arg) -> instance
         | 
| 1493 1493 |  | 
| 1494 | 
            -
              def ==: ( | 
| 1494 | 
            +
              def ==: (self other) -> bool
         | 
| 1495 1495 |  | 
| 1496 1496 | 
             
              # <!-- rdoc-file=lib/resolv.rb -->
         | 
| 1497 1497 | 
             
              # The raw IPv4 address as a String.
         | 
| 1498 1498 | 
             
              #
         | 
| 1499 1499 | 
             
              def address: () -> String
         | 
| 1500 1500 |  | 
| 1501 | 
            -
              def eql?: ( | 
| 1501 | 
            +
              def eql?: (self other) -> bool
         | 
| 1502 1502 |  | 
| 1503 1503 | 
             
              def hash: () -> Integer
         | 
| 1504 1504 |  | 
| @@ -1544,14 +1544,14 @@ class Resolv::IPv6 | |
| 1544 1544 | 
             
              #
         | 
| 1545 1545 | 
             
              def self.create: (String | instance arg) -> instance
         | 
| 1546 1546 |  | 
| 1547 | 
            -
              def ==: ( | 
| 1547 | 
            +
              def ==: (self other) -> bool
         | 
| 1548 1548 |  | 
| 1549 1549 | 
             
              # <!-- rdoc-file=lib/resolv.rb -->
         | 
| 1550 1550 | 
             
              # The raw IPv6 address as a String.
         | 
| 1551 1551 | 
             
              #
         | 
| 1552 1552 | 
             
              def address: () -> String
         | 
| 1553 1553 |  | 
| 1554 | 
            -
              def eql?: ( | 
| 1554 | 
            +
              def eql?: (self other) -> bool
         | 
| 1555 1555 |  | 
| 1556 1556 | 
             
              def hash: () -> Integer
         | 
| 1557 1557 |  |