rails_type_id 0.1.0

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.
Files changed (124) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +25 -0
  3. data/.ruby-version +1 -0
  4. data/README.md +46 -0
  5. data/Rakefile +16 -0
  6. data/lib/rails_type_id/concern.rb +129 -0
  7. data/lib/rails_type_id/require.rb +6 -0
  8. data/lib/rails_type_id/test_helper.rb +16 -0
  9. data/lib/rails_type_id/version.rb +6 -0
  10. data/lib/rails_type_id.rb +9 -0
  11. data/lib/tapioca/dsl/compilers/rails_type_id_compiler.rb +49 -0
  12. data/sig/rails_type_id.rbs +4 -0
  13. data/sorbet/config +4 -0
  14. data/sorbet/rbi/annotations/.gitattributes +1 -0
  15. data/sorbet/rbi/annotations/actionmailer.rbi +10 -0
  16. data/sorbet/rbi/annotations/actionpack.rbi +430 -0
  17. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  18. data/sorbet/rbi/annotations/activejob.rbi +44 -0
  19. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  20. data/sorbet/rbi/annotations/activerecord.rbi +98 -0
  21. data/sorbet/rbi/annotations/activesupport.rbi +468 -0
  22. data/sorbet/rbi/annotations/globalid.rbi +30 -0
  23. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  24. data/sorbet/rbi/annotations/railties.rbi +61 -0
  25. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  26. data/sorbet/rbi/dsl/.gitattributes +1 -0
  27. data/sorbet/rbi/dsl/active_model/validations/callbacks.rbi +21 -0
  28. data/sorbet/rbi/dsl/active_model/validations.rbi +26 -0
  29. data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
  30. data/sorbet/rbi/dsl/rails_type_id/concern.rbi +22 -0
  31. data/sorbet/rbi/gems/.gitattributes +1 -0
  32. data/sorbet/rbi/gems/actioncable@8.0.2.rbi +3133 -0
  33. data/sorbet/rbi/gems/actionmailbox@8.0.2.rbi +991 -0
  34. data/sorbet/rbi/gems/actionmailer@8.0.2.rbi +2775 -0
  35. data/sorbet/rbi/gems/actionpack@8.0.2.rbi +21167 -0
  36. data/sorbet/rbi/gems/actiontext@8.0.2.rbi +1449 -0
  37. data/sorbet/rbi/gems/actionview@8.0.2.rbi +15789 -0
  38. data/sorbet/rbi/gems/activejob@8.0.2.rbi +2864 -0
  39. data/sorbet/rbi/gems/activemodel@8.0.2.rbi +6946 -0
  40. data/sorbet/rbi/gems/activerecord@8.0.2.rbi +42458 -0
  41. data/sorbet/rbi/gems/activestorage@8.0.2.rbi +2156 -0
  42. data/sorbet/rbi/gems/activesupport@8.0.2.rbi +21274 -0
  43. data/sorbet/rbi/gems/ast@2.4.3.rbi +586 -0
  44. data/sorbet/rbi/gems/base64@0.3.0.rbi +545 -0
  45. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  46. data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
  47. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  48. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +11734 -0
  49. data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +9 -0
  50. data/sorbet/rbi/gems/crass@1.0.6.rbi +623 -0
  51. data/sorbet/rbi/gems/date@3.4.1.rbi +403 -0
  52. data/sorbet/rbi/gems/drb@2.2.3.rbi +1661 -0
  53. data/sorbet/rbi/gems/erb@5.0.2.rbi +878 -0
  54. data/sorbet/rbi/gems/erubi@1.13.1.rbi +157 -0
  55. data/sorbet/rbi/gems/globalid@1.2.1.rbi +742 -0
  56. data/sorbet/rbi/gems/i18n@1.14.7.rbi +2383 -0
  57. data/sorbet/rbi/gems/io-console@0.8.1.rbi +9 -0
  58. data/sorbet/rbi/gems/json@2.12.2.rbi +2287 -0
  59. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  60. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +323 -0
  61. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  62. data/sorbet/rbi/gems/loofah@2.24.1.rbi +1105 -0
  63. data/sorbet/rbi/gems/mail@2.8.1.rbi +8890 -0
  64. data/sorbet/rbi/gems/marcel@1.0.4.rbi +239 -0
  65. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +173 -0
  66. data/sorbet/rbi/gems/minitest@5.25.5.rbi +2231 -0
  67. data/sorbet/rbi/gems/net-imap@0.5.9.rbi +10285 -0
  68. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +927 -0
  69. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +292 -0
  70. data/sorbet/rbi/gems/net-smtp@0.5.1.rbi +1240 -0
  71. data/sorbet/rbi/gems/netrc@0.11.0.rbi +177 -0
  72. data/sorbet/rbi/gems/nio4r@2.7.4.rbi +388 -0
  73. data/sorbet/rbi/gems/nokogiri@1.18.9.rbi +8548 -0
  74. data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
  75. data/sorbet/rbi/gems/parser@3.3.9.0.rbi +5537 -0
  76. data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
  77. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  78. data/sorbet/rbi/gems/prism@1.4.0.rbi +41790 -0
  79. data/sorbet/rbi/gems/psych@5.2.6.rbi +2542 -0
  80. data/sorbet/rbi/gems/racc@1.8.1.rbi +168 -0
  81. data/sorbet/rbi/gems/rack-session@2.1.1.rbi +722 -0
  82. data/sorbet/rbi/gems/rack-test@2.2.0.rbi +729 -0
  83. data/sorbet/rbi/gems/rack@3.2.0.rbi +5054 -0
  84. data/sorbet/rbi/gems/rackup@2.2.1.rbi +230 -0
  85. data/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi +790 -0
  86. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +645 -0
  87. data/sorbet/rbi/gems/rails@8.0.2.rbi +9 -0
  88. data/sorbet/rbi/gems/railties@8.0.2.rbi +4014 -0
  89. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  90. data/sorbet/rbi/gems/rake@13.3.0.rbi +3039 -0
  91. data/sorbet/rbi/gems/rbi@0.3.6.rbi +5162 -0
  92. data/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi +7895 -0
  93. data/sorbet/rbi/gems/rdoc@6.14.2.rbi +12944 -0
  94. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3833 -0
  95. data/sorbet/rbi/gems/reline@0.6.2.rbi +9 -0
  96. data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
  97. data/sorbet/rbi/gems/rexml@3.4.1.rbi +5205 -0
  98. data/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi +7473 -0
  99. data/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi +2386 -0
  100. data/sorbet/rbi/gems/rubocop@1.79.1.rbi +63674 -0
  101. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  102. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
  103. data/sorbet/rbi/gems/spoom@1.7.5.rbi +5832 -0
  104. data/sorbet/rbi/gems/sqlite3@2.7.3.rbi +1989 -0
  105. data/sorbet/rbi/gems/stringio@3.1.7.rbi +9 -0
  106. data/sorbet/rbi/gems/tapioca@0.17.7.rbi +3692 -0
  107. data/sorbet/rbi/gems/thor@1.4.0.rbi +4399 -0
  108. data/sorbet/rbi/gems/timeout@0.4.3.rbi +157 -0
  109. data/sorbet/rbi/gems/typeid@0.2.2.rbi +239 -0
  110. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5919 -0
  111. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  112. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  113. data/sorbet/rbi/gems/uri@1.0.3.rbi +2354 -0
  114. data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
  115. data/sorbet/rbi/gems/uuid7@0.2.0.rbi +60 -0
  116. data/sorbet/rbi/gems/websocket-driver@0.8.0.rbi +1065 -0
  117. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +117 -0
  118. data/sorbet/rbi/gems/with_model@2.2.0.rbi +282 -0
  119. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +430 -0
  120. data/sorbet/rbi/gems/yard@0.9.37.rbi +18512 -0
  121. data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +1196 -0
  122. data/sorbet/tapioca/config.yml +13 -0
  123. data/sorbet/tapioca/require.rb +13 -0
  124. metadata +208 -0
@@ -0,0 +1,177 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `netrc` gem.
5
+ # Please instead update this file by running `bin/tapioca gem netrc`.
6
+
7
+
8
+ # source://netrc//lib/netrc.rb#3
9
+ class Netrc
10
+ # @return [Netrc] a new instance of Netrc
11
+ #
12
+ # source://netrc//lib/netrc.rb#166
13
+ def initialize(path, data); end
14
+
15
+ # source://netrc//lib/netrc.rb#180
16
+ def [](k); end
17
+
18
+ # source://netrc//lib/netrc.rb#188
19
+ def []=(k, info); end
20
+
21
+ # source://netrc//lib/netrc.rb#200
22
+ def delete(key); end
23
+
24
+ # source://netrc//lib/netrc.rb#211
25
+ def each(&block); end
26
+
27
+ # source://netrc//lib/netrc.rb#196
28
+ def length; end
29
+
30
+ # source://netrc//lib/netrc.rb#215
31
+ def new_item(m, l, p); end
32
+
33
+ # Returns the value of attribute new_item_prefix.
34
+ #
35
+ # source://netrc//lib/netrc.rb#178
36
+ def new_item_prefix; end
37
+
38
+ # Sets the attribute new_item_prefix
39
+ #
40
+ # @param value the value to set the attribute new_item_prefix to.
41
+ #
42
+ # source://netrc//lib/netrc.rb#178
43
+ def new_item_prefix=(_arg0); end
44
+
45
+ # source://netrc//lib/netrc.rb#219
46
+ def save; end
47
+
48
+ # source://netrc//lib/netrc.rb#233
49
+ def unparse; end
50
+
51
+ class << self
52
+ # source://netrc//lib/netrc.rb#42
53
+ def check_permissions(path); end
54
+
55
+ # source://netrc//lib/netrc.rb#33
56
+ def config; end
57
+
58
+ # @yield [self.config]
59
+ #
60
+ # source://netrc//lib/netrc.rb#37
61
+ def configure; end
62
+
63
+ # source://netrc//lib/netrc.rb#10
64
+ def default_path; end
65
+
66
+ # source://netrc//lib/netrc.rb#14
67
+ def home_path; end
68
+
69
+ # source://netrc//lib/netrc.rb#85
70
+ def lex(lines); end
71
+
72
+ # source://netrc//lib/netrc.rb#29
73
+ def netrc_filename; end
74
+
75
+ # Returns two values, a header and a list of items.
76
+ # Each item is a tuple, containing some or all of:
77
+ # - machine keyword (including trailing whitespace+comments)
78
+ # - machine name
79
+ # - login keyword (including surrounding whitespace+comments)
80
+ # - login
81
+ # - password keyword (including surrounding whitespace+comments)
82
+ # - password
83
+ # - trailing chars
84
+ # This lets us change individual fields, then write out the file
85
+ # with all its original formatting.
86
+ #
87
+ # source://netrc//lib/netrc.rb#129
88
+ def parse(ts); end
89
+
90
+ # Reads path and parses it as a .netrc file. If path doesn't
91
+ # exist, returns an empty object. Decrypt paths ending in .gpg.
92
+ #
93
+ # source://netrc//lib/netrc.rb#51
94
+ def read(path = T.unsafe(nil)); end
95
+
96
+ # @return [Boolean]
97
+ #
98
+ # source://netrc//lib/netrc.rb#112
99
+ def skip?(s); end
100
+ end
101
+ end
102
+
103
+ # source://netrc//lib/netrc.rb#8
104
+ Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
105
+
106
+ # source://netrc//lib/netrc.rb#244
107
+ class Netrc::Entry < ::Struct
108
+ # Returns the value of attribute login
109
+ #
110
+ # @return [Object] the current value of login
111
+ #
112
+ # source://netrc//lib/netrc.rb#244
113
+ def login; end
114
+
115
+ # Sets the attribute login
116
+ #
117
+ # @param value [Object] the value to set the attribute login to.
118
+ # @return [Object] the newly set value
119
+ #
120
+ # source://netrc//lib/netrc.rb#244
121
+ def login=(_); end
122
+
123
+ # Returns the value of attribute password
124
+ #
125
+ # @return [Object] the current value of password
126
+ #
127
+ # source://netrc//lib/netrc.rb#244
128
+ def password; end
129
+
130
+ # Sets the attribute password
131
+ #
132
+ # @param value [Object] the value to set the attribute password to.
133
+ # @return [Object] the newly set value
134
+ #
135
+ # source://netrc//lib/netrc.rb#244
136
+ def password=(_); end
137
+
138
+ # source://netrc//lib/netrc.rb#245
139
+ def to_ary; end
140
+
141
+ class << self
142
+ # source://netrc//lib/netrc.rb#244
143
+ def [](*_arg0); end
144
+
145
+ # source://netrc//lib/netrc.rb#244
146
+ def inspect; end
147
+
148
+ # source://netrc//lib/netrc.rb#244
149
+ def keyword_init?; end
150
+
151
+ # source://netrc//lib/netrc.rb#244
152
+ def members; end
153
+
154
+ # source://netrc//lib/netrc.rb#244
155
+ def new(*_arg0); end
156
+ end
157
+ end
158
+
159
+ # source://netrc//lib/netrc.rb#250
160
+ class Netrc::Error < ::StandardError; end
161
+
162
+ # source://netrc//lib/netrc.rb#68
163
+ class Netrc::TokenArray < ::Array
164
+ # source://netrc//lib/netrc.rb#76
165
+ def readto; end
166
+
167
+ # source://netrc//lib/netrc.rb#69
168
+ def take; end
169
+ end
170
+
171
+ # source://netrc//lib/netrc.rb#4
172
+ Netrc::VERSION = T.let(T.unsafe(nil), String)
173
+
174
+ # see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
175
+ #
176
+ # source://netrc//lib/netrc.rb#7
177
+ Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)
@@ -0,0 +1,388 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `nio4r` gem.
5
+ # Please instead update this file by running `bin/tapioca gem nio4r`.
6
+
7
+
8
+ # New I/O for Ruby
9
+ #
10
+ # source://nio4r//lib/nio/version.rb#8
11
+ module NIO
12
+ class << self
13
+ # NIO implementation, one of the following (as a string):
14
+ # * select: in pure Ruby using Kernel.select
15
+ # * libev: as a C extension using libev
16
+ # * java: using Java NIO
17
+ #
18
+ # source://nio4r//lib/nio.rb#21
19
+ def engine; end
20
+
21
+ # @return [Boolean]
22
+ #
23
+ # source://nio4r//lib/nio.rb#25
24
+ def pure?(env = T.unsafe(nil)); end
25
+ end
26
+ end
27
+
28
+ # Efficient byte buffers for performant I/O operations
29
+ class NIO::ByteBuffer
30
+ include ::Enumerable
31
+
32
+ # Create a new ByteBuffer, either with a specified capacity or populating
33
+ # it from a given string
34
+ #
35
+ # @param capacity [Integer] size of buffer in bytes
36
+ # @raise [TypeError]
37
+ # @return [NIO::ByteBuffer]
38
+ #
39
+ # source://nio4r//lib/nio.rb#51
40
+ def initialize(_arg0); end
41
+
42
+ # Add a String to the buffer
43
+ #
44
+ # @param str [#to_str] data to add to the buffer
45
+ # @raise [TypeError] given a non-string type
46
+ # @raise [NIO::ByteBuffer::OverflowError] buffer is full
47
+ # @return [self]
48
+ #
49
+ # source://nio4r//lib/nio.rb#51
50
+ def <<(_arg0); end
51
+
52
+ # Obtain the byte at a given index in the buffer as an Integer
53
+ #
54
+ # @raise [ArgumentError] index is invalid (either negative or larger than limit)
55
+ # @return [Integer] byte at the given index
56
+ #
57
+ # source://nio4r//lib/nio.rb#51
58
+ def [](_arg0); end
59
+
60
+ # Returns the value of attribute capacity.
61
+ #
62
+ # source://nio4r//lib/nio.rb#51
63
+ def capacity; end
64
+
65
+ # Clear the buffer, resetting it to the default state
66
+ #
67
+ # source://nio4r//lib/nio.rb#51
68
+ def clear; end
69
+
70
+ # Move data between the position and limit to the beginning of the buffer
71
+ # Sets the position to the end of the moved data, and the limit to the capacity
72
+ #
73
+ # source://nio4r//lib/nio.rb#51
74
+ def compact; end
75
+
76
+ # Iterate over the bytes in the buffer (as Integers)
77
+ #
78
+ # @return [self]
79
+ #
80
+ # source://nio4r//lib/nio.rb#51
81
+ def each; end
82
+
83
+ # Set the buffer's current position as the limit and set the position to 0
84
+ #
85
+ # source://nio4r//lib/nio.rb#51
86
+ def flip; end
87
+
88
+ # Does the ByteBuffer have any space remaining?
89
+ #
90
+ # @return [true, false]
91
+ #
92
+ # source://nio4r//lib/nio.rb#51
93
+ def full?; end
94
+
95
+ # Obtain the requested number of bytes from the buffer, advancing the position.
96
+ # If no length is given, all remaining bytes are consumed.
97
+ #
98
+ # @raise [NIO::ByteBuffer::UnderflowError] not enough data remaining in buffer
99
+ # @return [String] bytes read from buffer
100
+ #
101
+ # source://nio4r//lib/nio.rb#51
102
+ def get(*_arg0); end
103
+
104
+ # Inspect the state of the buffer
105
+ #
106
+ # @return [String] string describing the state of the buffer
107
+ #
108
+ # source://nio4r//lib/nio.rb#51
109
+ def inspect; end
110
+
111
+ # Returns the value of attribute limit.
112
+ #
113
+ # source://nio4r//lib/nio.rb#51
114
+ def limit; end
115
+
116
+ # Set the limit to the given value. New limit must be less than capacity.
117
+ # Preserves limit and mark if they're less than the new limit, otherwise
118
+ # sets position to the new limit and clears the mark.
119
+ #
120
+ # @param new_limit [Integer] position in the buffer
121
+ # @raise [ArgumentError] new limit was invalid
122
+ #
123
+ # source://nio4r//lib/nio.rb#51
124
+ def limit=(_arg0); end
125
+
126
+ # Mark a position to return to using the `#reset` method
127
+ #
128
+ # source://nio4r//lib/nio.rb#51
129
+ def mark; end
130
+
131
+ # Returns the value of attribute position.
132
+ #
133
+ # source://nio4r//lib/nio.rb#51
134
+ def position; end
135
+
136
+ # Set the position to the given value. New position must be less than limit.
137
+ # Preserves mark if it's less than the new position, otherwise clears it.
138
+ #
139
+ # @param new_position [Integer] position in the buffer
140
+ # @raise [ArgumentError] new position was invalid
141
+ #
142
+ # source://nio4r//lib/nio.rb#51
143
+ def position=(_arg0); end
144
+
145
+ # Perform a non-blocking read from the given IO object into the buffer
146
+ # Reads as much data as is immediately available and returns
147
+ #
148
+ # @param Ruby [IO] IO object to read from
149
+ # @raise [OverflowError]
150
+ # @return [Integer] number of bytes read (0 if none were available)
151
+ #
152
+ # source://nio4r//lib/nio.rb#51
153
+ def read_from(_arg0); end
154
+
155
+ # Number of bytes remaining in the buffer before the limit
156
+ #
157
+ # @return [Integer] number of bytes remaining
158
+ #
159
+ # source://nio4r//lib/nio.rb#51
160
+ def remaining; end
161
+
162
+ # Reset position to the previously marked location
163
+ #
164
+ # @raise [NIO::ByteBuffer::MarkUnsetError] mark has not been set (call `#mark` first)
165
+ #
166
+ # source://nio4r//lib/nio.rb#51
167
+ def reset; end
168
+
169
+ # Set the buffer's current position to 0, leaving the limit unchanged
170
+ #
171
+ # source://nio4r//lib/nio.rb#51
172
+ def rewind; end
173
+
174
+ # source://nio4r//lib/nio.rb#51
175
+ def size; end
176
+
177
+ # Perform a non-blocking write of the buffer's contents to the given I/O object
178
+ # Writes as much data as is immediately possible and returns
179
+ #
180
+ # @param Ruby [IO] IO object to write to
181
+ # @raise [UnderflowError]
182
+ # @return [Integer] number of bytes written (0 if the write would block)
183
+ #
184
+ # source://nio4r//lib/nio.rb#51
185
+ def write_to(_arg0); end
186
+ end
187
+
188
+ # Mark has not been set
189
+ class NIO::ByteBuffer::MarkUnsetError < ::IOError; end
190
+
191
+ # Insufficient capacity in buffer
192
+ class NIO::ByteBuffer::OverflowError < ::IOError; end
193
+
194
+ # Not enough data remaining in buffer
195
+ class NIO::ByteBuffer::UnderflowError < ::IOError; end
196
+
197
+ # source://nio4r//lib/nio.rb#59
198
+ NIO::ENGINE = T.let(T.unsafe(nil), String)
199
+
200
+ # Monitors watch IO objects for specific events
201
+ class NIO::Monitor
202
+ # @return [Monitor] a new instance of Monitor
203
+ #
204
+ # source://nio4r//lib/nio.rb#51
205
+ def initialize(_arg0, _arg1, _arg2); end
206
+
207
+ # Add new interests to the existing interest set
208
+ #
209
+ # @param interests [:r, :w, :rw] new I/O interests (read/write/readwrite)
210
+ # @return [self]
211
+ #
212
+ # source://nio4r//lib/nio.rb#51
213
+ def add_interest(_arg0); end
214
+
215
+ # Deactivate this monitor
216
+ #
217
+ # source://nio4r//lib/nio.rb#51
218
+ def close(*_arg0); end
219
+
220
+ # Is this monitor closed?
221
+ #
222
+ # @return [Boolean]
223
+ #
224
+ # source://nio4r//lib/nio.rb#51
225
+ def closed?; end
226
+
227
+ # Returns the value of attribute interests.
228
+ #
229
+ # source://nio4r//lib/nio.rb#51
230
+ def interests; end
231
+
232
+ # Replace the existing interest set with a new one
233
+ #
234
+ # @param interests [:r, :w, :rw, nil] I/O readiness we're interested in (read/write/readwrite)
235
+ # @raise [EOFError]
236
+ # @return [Symbol] new interests
237
+ #
238
+ # source://nio4r//lib/nio.rb#51
239
+ def interests=(_arg0); end
240
+
241
+ # Returns the value of attribute io.
242
+ #
243
+ # source://nio4r//lib/nio.rb#51
244
+ def io; end
245
+
246
+ # Is the IO object readable?
247
+ #
248
+ # @return [Boolean]
249
+ #
250
+ # source://nio4r//lib/nio.rb#51
251
+ def readable?; end
252
+
253
+ # Returns the value of attribute readiness.
254
+ #
255
+ # source://nio4r//lib/nio.rb#51
256
+ def readiness; end
257
+
258
+ # Remove interests from the existing interest set
259
+ #
260
+ # @param interests [:r, :w, :rw] I/O interests to remove (read/write/readwrite)
261
+ # @return [self]
262
+ #
263
+ # source://nio4r//lib/nio.rb#51
264
+ def remove_interest(_arg0); end
265
+
266
+ # Returns the value of attribute selector.
267
+ #
268
+ # source://nio4r//lib/nio.rb#51
269
+ def selector; end
270
+
271
+ # Returns the value of attribute value.
272
+ #
273
+ # source://nio4r//lib/nio.rb#51
274
+ def value; end
275
+
276
+ # Sets the attribute value
277
+ #
278
+ # @param value the value to set the attribute value to.
279
+ #
280
+ # source://nio4r//lib/nio.rb#51
281
+ def value=(_arg0); end
282
+
283
+ # Is the IO object writable?
284
+ #
285
+ # @return [Boolean]
286
+ #
287
+ # source://nio4r//lib/nio.rb#51
288
+ def writable?; end
289
+
290
+ # Is the IO object writable?
291
+ #
292
+ # @return [Boolean]
293
+ #
294
+ # source://nio4r//lib/nio.rb#51
295
+ def writeable?; end
296
+ end
297
+
298
+ # Selectors monitor IO objects for events of interest
299
+ class NIO::Selector
300
+ # Create a new NIO::Selector
301
+ #
302
+ # @raise [ArgumentError]
303
+ # @return [Selector] a new instance of Selector
304
+ #
305
+ # source://nio4r//lib/nio.rb#51
306
+ def initialize(*_arg0); end
307
+
308
+ # Return a symbol representing the backend I/O multiplexing mechanism used.
309
+ # Supported backends are:
310
+ # * :ruby - pure Ruby (i.e IO.select)
311
+ # * :java - Java NIO on JRuby
312
+ # * :epoll - libev w\ Linux epoll
313
+ # * :poll - libev w\ POSIX poll
314
+ # * :kqueue - libev w\ BSD kqueue
315
+ # * :select - libev w\ SysV select
316
+ # * :port - libev w\ I/O completion ports
317
+ # * :linuxaio - libev w\ Linux AIO io_submit (experimental)
318
+ # * :io_uring - libev w\ Linux io_uring (experimental)
319
+ # * :unknown - libev w\ unknown backend
320
+ #
321
+ # source://nio4r//lib/nio.rb#51
322
+ def backend; end
323
+
324
+ # Close this selector and free its resources
325
+ #
326
+ # source://nio4r//lib/nio.rb#51
327
+ def close; end
328
+
329
+ # Is this selector closed?
330
+ #
331
+ # @return [Boolean]
332
+ #
333
+ # source://nio4r//lib/nio.rb#51
334
+ def closed?; end
335
+
336
+ # Deregister the given IO object from the selector
337
+ #
338
+ # source://nio4r//lib/nio.rb#51
339
+ def deregister(_arg0); end
340
+
341
+ # @return [Boolean]
342
+ #
343
+ # source://nio4r//lib/nio.rb#51
344
+ def empty?; end
345
+
346
+ # Register interest in an IO object with the selector for the given types
347
+ # of events. Valid event types for interest are:
348
+ # * :r - is the IO readable?
349
+ # * :w - is the IO writeable?
350
+ # * :rw - is the IO either readable or writeable?
351
+ #
352
+ # source://nio4r//lib/nio.rb#51
353
+ def register(_arg0, _arg1); end
354
+
355
+ # Is the given IO object registered with the selector?
356
+ #
357
+ # @return [Boolean]
358
+ #
359
+ # source://nio4r//lib/nio.rb#51
360
+ def registered?(_arg0); end
361
+
362
+ # Select which monitors are ready
363
+ #
364
+ # source://nio4r//lib/nio.rb#51
365
+ def select(*_arg0); end
366
+
367
+ # Wake up a thread that's in the middle of selecting on this selector, if
368
+ # any such thread exists.
369
+ #
370
+ # Invoking this method more than once between two successive select calls
371
+ # has the same effect as invoking it just once. In other words, it provides
372
+ # level-triggered behavior.
373
+ #
374
+ # source://nio4r//lib/nio.rb#51
375
+ def wakeup; end
376
+
377
+ class << self
378
+ # Return supported backends as symbols
379
+ #
380
+ # See `#backend` method definition for all possible backends
381
+ #
382
+ # source://nio4r//lib/nio.rb#51
383
+ def backends; end
384
+ end
385
+ end
386
+
387
+ # source://nio4r//lib/nio/version.rb#9
388
+ NIO::VERSION = T.let(T.unsafe(nil), String)