ruby-lint 1.0.0.pre.preview1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +15 -0
  3. data/MANIFEST +93 -0
  4. data/checksum/ruby-lint-1.0.0.pre.preview1.gem.sha512 +1 -0
  5. data/doc/changelog.md +40 -0
  6. data/lib/ruby-lint.rb +1 -1
  7. data/lib/ruby-lint/definitions/core/abbrev.rb +18 -0
  8. data/lib/ruby-lint/definitions/core/base64.rb +37 -0
  9. data/lib/ruby-lint/definitions/core/basic_socket.rb +685 -0
  10. data/lib/ruby-lint/definitions/core/benchmark.rb +41 -0
  11. data/lib/ruby-lint/definitions/core/cgi.rb +93 -0
  12. data/lib/ruby-lint/definitions/core/common_headers.rb +555 -0
  13. data/lib/ruby-lint/definitions/core/common_libs.rb +428 -0
  14. data/lib/ruby-lint/definitions/core/config.rb +325 -0
  15. data/lib/ruby-lint/definitions/core/conftest_c.rb +555 -0
  16. data/lib/ruby-lint/definitions/core/coutflag.rb +555 -0
  17. data/lib/ruby-lint/definitions/core/csv.rb +488 -0
  18. data/lib/ruby-lint/definitions/core/delegator.rb +73 -0
  19. data/lib/ruby-lint/definitions/core/drb.rb +69 -0
  20. data/lib/ruby-lint/definitions/core/drb_id_conv.rb +27 -0
  21. data/lib/ruby-lint/definitions/core/drb_object.rb +81 -0
  22. data/lib/ruby-lint/definitions/core/drb_undumped.rb +17 -0
  23. data/lib/ruby-lint/definitions/core/exception_for_matrix.rb +57 -0
  24. data/lib/ruby-lint/definitions/core/export_prefix.rb +23 -0
  25. data/lib/ruby-lint/definitions/core/failed_message.rb +555 -0
  26. data/lib/ruby-lint/definitions/core/fcntl.rb +13 -0
  27. data/lib/ruby-lint/definitions/core/find.rb +19 -0
  28. data/lib/ruby-lint/definitions/core/forwardable.rb +47 -0
  29. data/lib/ruby-lint/definitions/core/getopt_long.rb +60 -0
  30. data/lib/ruby-lint/definitions/core/gserver.rb +92 -0
  31. data/lib/ruby-lint/definitions/core/hdr_ext.rb +428 -0
  32. data/lib/ruby-lint/definitions/core/install_dirs.rb +428 -0
  33. data/lib/ruby-lint/definitions/core/ipaddr.rb +140 -0
  34. data/lib/ruby-lint/definitions/core/ipsocket.rb +696 -0
  35. data/lib/ruby-lint/definitions/core/irb.rb +64 -0
  36. data/lib/ruby-lint/definitions/core/json.rb +128 -0
  37. data/lib/ruby-lint/definitions/core/kconv.rb +67 -0
  38. data/lib/ruby-lint/definitions/core/libarg.rb +555 -0
  39. data/lib/ruby-lint/definitions/core/libpathflag.rb +555 -0
  40. data/lib/ruby-lint/definitions/core/link_so.rb +555 -0
  41. data/lib/ruby-lint/definitions/core/logger.rb +105 -0
  42. data/lib/ruby-lint/definitions/core/logging.rb +33 -0
  43. data/lib/ruby-lint/definitions/core/make_makefile.rb +495 -0
  44. data/lib/ruby-lint/definitions/core/matrix.rb +455 -0
  45. data/lib/ruby-lint/definitions/core/md5.rb +80 -0
  46. data/lib/ruby-lint/definitions/core/mutex_m.rb +43 -0
  47. data/lib/ruby-lint/definitions/core/nkf.rb +17 -0
  48. data/lib/ruby-lint/definitions/core/observable.rb +36 -0
  49. data/lib/ruby-lint/definitions/core/open3.rb +67 -0
  50. data/lib/ruby-lint/definitions/core/open_ssl.rb +25 -0
  51. data/lib/ruby-lint/definitions/core/open_uri.rb +43 -0
  52. data/lib/ruby-lint/definitions/core/orig_libpath.rb +39 -0
  53. data/lib/ruby-lint/definitions/core/outflag.rb +555 -0
  54. data/lib/ruby-lint/definitions/core/pathname.rb +287 -0
  55. data/lib/ruby-lint/definitions/core/pp.rb +154 -0
  56. data/lib/ruby-lint/definitions/core/pretty_print.rb +87 -0
  57. data/lib/ruby-lint/definitions/core/prime.rb +369 -0
  58. data/lib/ruby-lint/definitions/core/profiler__.rb +25 -0
  59. data/lib/ruby-lint/definitions/core/pstore.rb +61 -0
  60. data/lib/ruby-lint/definitions/core/psych.rb +139 -0
  61. data/lib/ruby-lint/definitions/core/rdoc.rb +15 -0
  62. data/lib/ruby-lint/definitions/core/readline.rb +79 -0
  63. data/lib/ruby-lint/definitions/core/resolv.rb +71 -0
  64. data/lib/ruby-lint/definitions/core/rexml.rb +13 -0
  65. data/lib/ruby-lint/definitions/core/rpathflag.rb +555 -0
  66. data/lib/ruby-lint/definitions/core/rss.rb +13 -0
  67. data/lib/ruby-lint/definitions/core/ruby_revision.rb +253 -0
  68. data/lib/ruby-lint/definitions/core/scanf.rb +13 -0
  69. data/lib/ruby-lint/definitions/core/secure_random.rb +38 -0
  70. data/lib/ruby-lint/definitions/core/set.rb +584 -0
  71. data/lib/ruby-lint/definitions/core/sha1.rb +80 -0
  72. data/lib/ruby-lint/definitions/core/simple_delegator.rb +37 -0
  73. data/lib/ruby-lint/definitions/core/single_forwardable.rb +43 -0
  74. data/lib/ruby-lint/definitions/core/socket.rb +777 -0
  75. data/lib/ruby-lint/definitions/core/socket_error.rb +61 -0
  76. data/lib/ruby-lint/definitions/core/sorted_set.rb +296 -0
  77. data/lib/ruby-lint/definitions/core/src_ext.rb +428 -0
  78. data/lib/ruby-lint/definitions/core/tcpserver.rb +707 -0
  79. data/lib/ruby-lint/definitions/core/tcpsocket.rb +707 -0
  80. data/lib/ruby-lint/definitions/core/tempfile.rb +860 -0
  81. data/lib/ruby-lint/definitions/core/th_wait.rb +89 -0
  82. data/lib/ruby-lint/definitions/core/threads_wait.rb +89 -0
  83. data/lib/ruby-lint/definitions/core/timeout.rb +25 -0
  84. data/lib/ruby-lint/definitions/core/timeout_error.rb +61 -0
  85. data/lib/ruby-lint/definitions/core/try_link.rb +555 -0
  86. data/lib/ruby-lint/definitions/core/tsort.rb +33 -0
  87. data/lib/ruby-lint/definitions/core/udpsocket.rb +712 -0
  88. data/lib/ruby-lint/definitions/core/universal_ints.rb +428 -0
  89. data/lib/ruby-lint/definitions/core/unixserver.rb +710 -0
  90. data/lib/ruby-lint/definitions/core/unixsocket.rb +702 -0
  91. data/lib/ruby-lint/definitions/core/uri.rb +71 -0
  92. data/lib/ruby-lint/definitions/core/vector.rb +323 -0
  93. data/lib/ruby-lint/definitions/core/webrick.rb +13 -0
  94. data/lib/ruby-lint/definitions/core/xmlrpc.rb +13 -0
  95. data/lib/ruby-lint/version.rb +1 -1
  96. data/misc/stdlib.rb +66 -0
  97. data/ruby-lint.gemspec +1 -1
  98. data/spec/fixtures/deeply/nested/file.rb +1 -0
  99. data/spec/ruby-lint/virtual_machine/assignments/range_spec.rb +28 -0
  100. data/task/build.rake +1 -1
  101. data/task/tag.rake +1 -1
  102. metadata +101 -8
@@ -0,0 +1,80 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Created: 2013-11-11 21:14:28 +0100
5
+ # Platform: rbx 2.1.1
6
+
7
+ RubyLint::GlobalScope.definitions.define_constant('SHA1') do |klass|
8
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('Digest::SHA1'))
9
+
10
+ klass.define_method('base64digest') do |method|
11
+ method.define_argument('str')
12
+ method.define_rest_argument('args')
13
+ end
14
+
15
+ klass.define_method('digest')
16
+
17
+ klass.define_method('file') do |method|
18
+ method.define_argument('name')
19
+ end
20
+
21
+ klass.define_method('hexdigest')
22
+
23
+ klass.define_method('initialize') do |method|
24
+ method.define_optional_argument('sclass')
25
+ method.define_optional_argument('name')
26
+ method.define_optional_argument('under')
27
+ end
28
+
29
+ klass.define_method('new') do |method|
30
+ method.define_optional_argument('str')
31
+ end
32
+
33
+ klass.define_method('orig_new') do |method|
34
+ method.define_rest_argument('args')
35
+ end
36
+
37
+ klass.define_method('sha1') do |method|
38
+ method.define_rest_argument('args')
39
+ end
40
+
41
+ klass.define_instance_method('<<')
42
+
43
+ klass.define_instance_method('base64digest') do |method|
44
+ method.define_optional_argument('str')
45
+ end
46
+
47
+ klass.define_instance_method('base64digest!')
48
+
49
+ klass.define_instance_method('block_length')
50
+
51
+ klass.define_instance_method('digest')
52
+
53
+ klass.define_instance_method('digest!')
54
+
55
+ klass.define_instance_method('digest_length')
56
+
57
+ klass.define_instance_method('file') do |method|
58
+ method.define_argument('name')
59
+ end
60
+
61
+ klass.define_instance_method('hexdigest')
62
+
63
+ klass.define_instance_method('hexdigest!')
64
+
65
+ klass.define_instance_method('initialize')
66
+
67
+ klass.define_instance_method('initialize_copy')
68
+
69
+ klass.define_instance_method('length')
70
+
71
+ klass.define_instance_method('new')
72
+
73
+ klass.define_instance_method('reset')
74
+
75
+ klass.define_instance_method('size')
76
+
77
+ klass.define_instance_method('update')
78
+ end
79
+
80
+ RubyLint::GlobalScope.definitions.lookup(:const, 'SHA1').deep_freeze
@@ -0,0 +1,37 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Created: 2013-11-11 20:10:55 +0100
5
+ # Platform: rbx 2.1.1
6
+
7
+ RubyLint::GlobalScope.definitions.define_constant('SimpleDelegator') do |klass|
8
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('Delegator'))
9
+
10
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('Kernel'))
11
+
12
+ klass.define_method('delegating_block') do |method|
13
+ method.define_argument('mid')
14
+ end
15
+
16
+ klass.define_method('public_api')
17
+
18
+ klass.define_instance_method('__getobj__')
19
+
20
+ klass.define_instance_method('__setobj__') do |method|
21
+ method.define_argument('obj')
22
+ end
23
+
24
+ klass.define_instance_method('marshal_dump')
25
+
26
+ klass.define_instance_method('marshal_load') do |method|
27
+ method.define_argument('data')
28
+ end
29
+
30
+ klass.define_instance_method('method_missing') do |method|
31
+ method.define_argument('m')
32
+ method.define_rest_argument('args')
33
+ method.define_block_argument('block')
34
+ end
35
+ end
36
+
37
+ RubyLint::GlobalScope.definitions.lookup(:const, 'SimpleDelegator').deep_freeze
@@ -0,0 +1,43 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Created: 2013-11-11 20:49:50 +0100
5
+ # Platform: rbx 2.1.1
6
+
7
+ RubyLint::GlobalScope.definitions.define_constant('SingleForwardable') do |klass|
8
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
9
+
10
+ klass.define_method('initialize')
11
+
12
+ klass.define_instance_method('def_delegator') do |method|
13
+ method.define_argument('accessor')
14
+ method.define_argument('method')
15
+ method.define_optional_argument('ali')
16
+ end
17
+
18
+ klass.define_instance_method('def_delegators') do |method|
19
+ method.define_argument('accessor')
20
+ method.define_rest_argument('methods')
21
+ end
22
+
23
+ klass.define_instance_method('def_single_delegator') do |method|
24
+ method.define_argument('accessor')
25
+ method.define_argument('method')
26
+ method.define_optional_argument('ali')
27
+ end
28
+
29
+ klass.define_instance_method('def_single_delegators') do |method|
30
+ method.define_argument('accessor')
31
+ method.define_rest_argument('methods')
32
+ end
33
+
34
+ klass.define_instance_method('delegate') do |method|
35
+ method.define_argument('hash')
36
+ end
37
+
38
+ klass.define_instance_method('single_delegate') do |method|
39
+ method.define_argument('hash')
40
+ end
41
+ end
42
+
43
+ RubyLint::GlobalScope.definitions.lookup(:const, 'SingleForwardable').deep_freeze
@@ -0,0 +1,777 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Created: 2013-11-11 21:14:28 +0100
5
+ # Platform: rbx 2.1.1
6
+
7
+ RubyLint::GlobalScope.definitions.define_constant('Socket') do |klass|
8
+ klass.inherits(RubyLint::GlobalScope.constant_proxy('BasicSocket'))
9
+
10
+ klass.define_method('binread') do |method|
11
+ method.define_argument('file')
12
+ method.define_optional_argument('length')
13
+ method.define_optional_argument('offset')
14
+ end
15
+
16
+ klass.define_method('binwrite') do |method|
17
+ method.define_argument('file')
18
+ method.define_argument('string')
19
+ method.define_rest_argument('args')
20
+ end
21
+
22
+ klass.define_method('connect_pipe') do |method|
23
+ method.define_argument('lhs')
24
+ method.define_argument('rhs')
25
+ end
26
+
27
+ klass.define_method('copy_stream') do |method|
28
+ method.define_argument('from')
29
+ method.define_argument('to')
30
+ method.define_optional_argument('max_length')
31
+ method.define_optional_argument('offset')
32
+ end
33
+
34
+ klass.define_method('do_not_reverse_lookup')
35
+
36
+ klass.define_method('do_not_reverse_lookup=') do |method|
37
+ method.define_argument('setting')
38
+ end
39
+
40
+ klass.define_method('fnmatch') do |method|
41
+ method.define_argument('pattern')
42
+ method.define_argument('path')
43
+ method.define_argument('flags')
44
+ end
45
+
46
+ klass.define_method('for_fd') do |method|
47
+ method.define_argument('fixnum')
48
+ end
49
+
50
+ klass.define_method('foreach') do |method|
51
+ method.define_argument('name')
52
+ method.define_optional_argument('separator')
53
+ method.define_optional_argument('limit')
54
+ method.define_optional_argument('options')
55
+ end
56
+
57
+ klass.define_method('from_descriptor') do |method|
58
+ method.define_argument('fixnum')
59
+ end
60
+
61
+ klass.define_method('get_protocol_family') do |method|
62
+ method.define_argument('family')
63
+ end
64
+
65
+ klass.define_method('get_socket_type') do |method|
66
+ method.define_argument('type')
67
+ end
68
+
69
+ klass.define_method('getaddrinfo') do |method|
70
+ method.define_argument('host')
71
+ method.define_argument('service')
72
+ method.define_optional_argument('family')
73
+ method.define_optional_argument('socktype')
74
+ method.define_optional_argument('protocol')
75
+ method.define_optional_argument('flags')
76
+ end
77
+
78
+ klass.define_method('gethostbyname') do |method|
79
+ method.define_argument('hostname')
80
+ end
81
+
82
+ klass.define_method('gethostname')
83
+
84
+ klass.define_method('getnameinfo') do |method|
85
+ method.define_argument('sockaddr')
86
+ method.define_optional_argument('flags')
87
+ end
88
+
89
+ klass.define_method('getservbyname') do |method|
90
+ method.define_argument('service')
91
+ method.define_optional_argument('proto')
92
+ end
93
+
94
+ klass.define_method('initialize') do |method|
95
+ method.define_optional_argument('sclass')
96
+ method.define_optional_argument('name')
97
+ method.define_optional_argument('under')
98
+ end
99
+
100
+ klass.define_method('max_open_fd')
101
+
102
+ klass.define_method('normalize_options') do |method|
103
+ method.define_argument('mode')
104
+ method.define_argument('options')
105
+ end
106
+
107
+ klass.define_method('open') do |method|
108
+ method.define_rest_argument('args')
109
+ end
110
+
111
+ klass.define_method('open_with_mode') do |method|
112
+ method.define_argument('path')
113
+ method.define_argument('mode')
114
+ method.define_argument('perm')
115
+ end
116
+
117
+ klass.define_method('pack_sockaddr_in') do |method|
118
+ method.define_argument('port')
119
+ method.define_argument('host')
120
+ method.define_optional_argument('type')
121
+ method.define_optional_argument('flags')
122
+ end
123
+
124
+ klass.define_method('pack_sockaddr_un') do |method|
125
+ method.define_argument('file')
126
+ end
127
+
128
+ klass.define_method('pair') do |method|
129
+ method.define_argument('domain')
130
+ method.define_argument('type')
131
+ method.define_argument('protocol')
132
+ method.define_optional_argument('klass')
133
+ end
134
+
135
+ klass.define_method('parse_mode') do |method|
136
+ method.define_argument('mode')
137
+ end
138
+
139
+ klass.define_method('pipe') do |method|
140
+ method.define_optional_argument('external')
141
+ method.define_optional_argument('internal')
142
+ method.define_optional_argument('options')
143
+ end
144
+
145
+ klass.define_method('popen') do |method|
146
+ method.define_argument('str')
147
+ method.define_optional_argument('mode')
148
+ method.define_optional_argument('options')
149
+ end
150
+
151
+ klass.define_method('prim_truncate') do |method|
152
+ method.define_argument('name')
153
+ method.define_argument('offset')
154
+ end
155
+
156
+ klass.define_method('read') do |method|
157
+ method.define_argument('name')
158
+ method.define_optional_argument('length_or_options')
159
+ method.define_optional_argument('offset')
160
+ method.define_optional_argument('options')
161
+ end
162
+
163
+ klass.define_method('read_encode') do |method|
164
+ method.define_argument('io')
165
+ method.define_argument('str')
166
+ end
167
+
168
+ klass.define_method('readlines') do |method|
169
+ method.define_argument('name')
170
+ method.define_optional_argument('separator')
171
+ method.define_optional_argument('limit')
172
+ method.define_optional_argument('options')
173
+ end
174
+
175
+ klass.define_method('select') do |method|
176
+ method.define_optional_argument('readables')
177
+ method.define_optional_argument('writables')
178
+ method.define_optional_argument('errorables')
179
+ method.define_optional_argument('timeout')
180
+ end
181
+
182
+ klass.define_method('select_primitive') do |method|
183
+ method.define_argument('readables')
184
+ method.define_argument('writables')
185
+ method.define_argument('errorables')
186
+ method.define_argument('timeout')
187
+ end
188
+
189
+ klass.define_method('setup') do |method|
190
+ method.define_argument('io')
191
+ method.define_argument('fd')
192
+ method.define_optional_argument('mode')
193
+ method.define_optional_argument('sync')
194
+ end
195
+
196
+ klass.define_method('sockaddr_in') do |method|
197
+ method.define_argument('port')
198
+ method.define_argument('host')
199
+ method.define_optional_argument('type')
200
+ method.define_optional_argument('flags')
201
+ end
202
+
203
+ klass.define_method('sockaddr_un') do |method|
204
+ method.define_argument('file')
205
+ end
206
+
207
+ klass.define_method('socketpair') do |method|
208
+ method.define_argument('domain')
209
+ method.define_argument('type')
210
+ method.define_argument('protocol')
211
+ method.define_optional_argument('klass')
212
+ end
213
+
214
+ klass.define_method('sysopen') do |method|
215
+ method.define_argument('path')
216
+ method.define_optional_argument('mode')
217
+ method.define_optional_argument('perm')
218
+ end
219
+
220
+ klass.define_method('try_convert') do |method|
221
+ method.define_argument('obj')
222
+ end
223
+
224
+ klass.define_method('unpack_sockaddr_in') do |method|
225
+ method.define_argument('sockaddr')
226
+ end
227
+
228
+ klass.define_method('unpack_sockaddr_un') do |method|
229
+ method.define_argument('addr')
230
+ end
231
+
232
+ klass.define_method('write') do |method|
233
+ method.define_argument('file')
234
+ method.define_argument('string')
235
+ method.define_rest_argument('args')
236
+ end
237
+
238
+ klass.define_instance_method('<<') do |method|
239
+ method.define_argument('obj')
240
+ end
241
+
242
+ klass.define_instance_method('accept')
243
+
244
+ klass.define_instance_method('accept_nonblock')
245
+
246
+ klass.define_instance_method('advise') do |method|
247
+ method.define_argument('advice')
248
+ method.define_optional_argument('offset')
249
+ method.define_optional_argument('len')
250
+ end
251
+
252
+ klass.define_instance_method('all?')
253
+
254
+ klass.define_instance_method('any?')
255
+
256
+ klass.define_instance_method('autoclose=') do |method|
257
+ method.define_argument('autoclose')
258
+ end
259
+
260
+ klass.define_instance_method('autoclose?')
261
+
262
+ klass.define_instance_method('bind') do |method|
263
+ method.define_argument('server_sockaddr')
264
+ end
265
+
266
+ klass.define_instance_method('binmode')
267
+
268
+ klass.define_instance_method('binmode?')
269
+
270
+ klass.define_instance_method('buffer_empty?')
271
+
272
+ klass.define_instance_method('bytes')
273
+
274
+ klass.define_instance_method('chars')
275
+
276
+ klass.define_instance_method('chunk') do |method|
277
+ method.define_optional_argument('initial_state')
278
+ end
279
+
280
+ klass.define_instance_method('close')
281
+
282
+ klass.define_instance_method('close_on_exec=') do |method|
283
+ method.define_argument('value')
284
+ end
285
+
286
+ klass.define_instance_method('close_on_exec?')
287
+
288
+ klass.define_instance_method('close_read')
289
+
290
+ klass.define_instance_method('close_write')
291
+
292
+ klass.define_instance_method('closed?')
293
+
294
+ klass.define_instance_method('codepoints')
295
+
296
+ klass.define_instance_method('collect')
297
+
298
+ klass.define_instance_method('collect_concat')
299
+
300
+ klass.define_instance_method('connect') do |method|
301
+ method.define_argument('sockaddr')
302
+ method.define_optional_argument('extra')
303
+ end
304
+
305
+ klass.define_instance_method('connect_nonblock') do |method|
306
+ method.define_argument('sockaddr')
307
+ end
308
+
309
+ klass.define_instance_method('count') do |method|
310
+ method.define_optional_argument('item')
311
+ end
312
+
313
+ klass.define_instance_method('cycle') do |method|
314
+ method.define_optional_argument('many')
315
+ end
316
+
317
+ klass.define_instance_method('descriptor')
318
+
319
+ klass.define_instance_method('descriptor=')
320
+
321
+ klass.define_instance_method('detect') do |method|
322
+ method.define_optional_argument('ifnone')
323
+ end
324
+
325
+ klass.define_instance_method('do_not_reverse_lookup')
326
+
327
+ klass.define_instance_method('do_not_reverse_lookup=') do |method|
328
+ method.define_argument('setting')
329
+ end
330
+
331
+ klass.define_instance_method('drop') do |method|
332
+ method.define_argument('n')
333
+ end
334
+
335
+ klass.define_instance_method('drop_while')
336
+
337
+ klass.define_instance_method('each') do |method|
338
+ method.define_optional_argument('sep_or_limit')
339
+ method.define_optional_argument('limit')
340
+ end
341
+
342
+ klass.define_instance_method('each_byte')
343
+
344
+ klass.define_instance_method('each_char')
345
+
346
+ klass.define_instance_method('each_codepoint')
347
+
348
+ klass.define_instance_method('each_cons') do |method|
349
+ method.define_argument('num')
350
+ end
351
+
352
+ klass.define_instance_method('each_entry') do |method|
353
+ method.define_rest_argument('pass')
354
+ end
355
+
356
+ klass.define_instance_method('each_line') do |method|
357
+ method.define_optional_argument('sep_or_limit')
358
+ method.define_optional_argument('limit')
359
+ end
360
+
361
+ klass.define_instance_method('each_slice') do |method|
362
+ method.define_argument('slice_size')
363
+ end
364
+
365
+ klass.define_instance_method('each_with_index') do |method|
366
+ method.define_rest_argument('args')
367
+ end
368
+
369
+ klass.define_instance_method('each_with_object') do |method|
370
+ method.define_argument('memo')
371
+ end
372
+
373
+ klass.define_instance_method('ensure_open')
374
+
375
+ klass.define_instance_method('ensure_open_and_readable')
376
+
377
+ klass.define_instance_method('ensure_open_and_writable')
378
+
379
+ klass.define_instance_method('entries') do |method|
380
+ method.define_rest_argument('arg')
381
+ end
382
+
383
+ klass.define_instance_method('eof')
384
+
385
+ klass.define_instance_method('eof!')
386
+
387
+ klass.define_instance_method('eof?')
388
+
389
+ klass.define_instance_method('expect') do |method|
390
+ method.define_argument('pat')
391
+ method.define_optional_argument('timeout')
392
+ end
393
+
394
+ klass.define_instance_method('external')
395
+
396
+ klass.define_instance_method('external=')
397
+
398
+ klass.define_instance_method('external_encoding')
399
+
400
+ klass.define_instance_method('fcntl') do |method|
401
+ method.define_argument('command')
402
+ method.define_optional_argument('arg')
403
+ end
404
+
405
+ klass.define_instance_method('fileno')
406
+
407
+ klass.define_instance_method('find') do |method|
408
+ method.define_optional_argument('ifnone')
409
+ end
410
+
411
+ klass.define_instance_method('find_all')
412
+
413
+ klass.define_instance_method('find_index') do |method|
414
+ method.define_optional_argument('value')
415
+ end
416
+
417
+ klass.define_instance_method('first') do |method|
418
+ method.define_optional_argument('n')
419
+ end
420
+
421
+ klass.define_instance_method('flat_map')
422
+
423
+ klass.define_instance_method('flush')
424
+
425
+ klass.define_instance_method('from_descriptor') do |method|
426
+ method.define_argument('fixnum')
427
+ end
428
+
429
+ klass.define_instance_method('fsync')
430
+
431
+ klass.define_instance_method('getbyte')
432
+
433
+ klass.define_instance_method('getc')
434
+
435
+ klass.define_instance_method('getpeername')
436
+
437
+ klass.define_instance_method('gets') do |method|
438
+ method.define_optional_argument('sep_or_limit')
439
+ method.define_optional_argument('limit')
440
+ end
441
+
442
+ klass.define_instance_method('getsockname')
443
+
444
+ klass.define_instance_method('getsockopt') do |method|
445
+ method.define_argument('level')
446
+ method.define_argument('optname')
447
+ end
448
+
449
+ klass.define_instance_method('grep') do |method|
450
+ method.define_argument('pattern')
451
+ end
452
+
453
+ klass.define_instance_method('group_by')
454
+
455
+ klass.define_instance_method('include?') do |method|
456
+ method.define_argument('obj')
457
+ end
458
+
459
+ klass.define_instance_method('increment_lineno')
460
+
461
+ klass.define_instance_method('initialize') do |method|
462
+ method.define_argument('family')
463
+ method.define_argument('socket_type')
464
+ method.define_optional_argument('protocol')
465
+ end
466
+
467
+ klass.define_instance_method('inject') do |method|
468
+ method.define_optional_argument('initial')
469
+ method.define_optional_argument('sym')
470
+ end
471
+
472
+ klass.define_instance_method('internal')
473
+
474
+ klass.define_instance_method('internal=')
475
+
476
+ klass.define_instance_method('internal_encoding')
477
+
478
+ klass.define_instance_method('ioctl') do |method|
479
+ method.define_argument('command')
480
+ method.define_optional_argument('arg')
481
+ end
482
+
483
+ klass.define_instance_method('isatty')
484
+
485
+ klass.define_instance_method('lazy')
486
+
487
+ klass.define_instance_method('lineno')
488
+
489
+ klass.define_instance_method('lineno=') do |method|
490
+ method.define_argument('line_number')
491
+ end
492
+
493
+ klass.define_instance_method('lines') do |method|
494
+ method.define_rest_argument('args')
495
+ end
496
+
497
+ klass.define_instance_method('listen') do |method|
498
+ method.define_argument('backlog')
499
+ end
500
+
501
+ klass.define_instance_method('map')
502
+
503
+ klass.define_instance_method('max')
504
+
505
+ klass.define_instance_method('max_by')
506
+
507
+ klass.define_instance_method('member?') do |method|
508
+ method.define_argument('obj')
509
+ end
510
+
511
+ klass.define_instance_method('min')
512
+
513
+ klass.define_instance_method('min_by')
514
+
515
+ klass.define_instance_method('minmax')
516
+
517
+ klass.define_instance_method('minmax_by')
518
+
519
+ klass.define_instance_method('mode')
520
+
521
+ klass.define_instance_method('mode=')
522
+
523
+ klass.define_instance_method('none?')
524
+
525
+ klass.define_instance_method('one?')
526
+
527
+ klass.define_instance_method('partition')
528
+
529
+ klass.define_instance_method('pid')
530
+
531
+ klass.define_instance_method('pid=')
532
+
533
+ klass.define_instance_method('pipe=') do |method|
534
+ method.define_argument('v')
535
+ end
536
+
537
+ klass.define_instance_method('pipe?')
538
+
539
+ klass.define_instance_method('pos')
540
+
541
+ klass.define_instance_method('pos=') do |method|
542
+ method.define_argument('offset')
543
+ end
544
+
545
+ klass.define_instance_method('prim_close')
546
+
547
+ klass.define_instance_method('prim_ftruncate') do |method|
548
+ method.define_argument('offset')
549
+ end
550
+
551
+ klass.define_instance_method('prim_seek') do |method|
552
+ method.define_argument('amount')
553
+ method.define_argument('whence')
554
+ end
555
+
556
+ klass.define_instance_method('prim_write') do |method|
557
+ method.define_argument('str')
558
+ end
559
+
560
+ klass.define_instance_method('print') do |method|
561
+ method.define_rest_argument('args')
562
+ end
563
+
564
+ klass.define_instance_method('printf') do |method|
565
+ method.define_argument('fmt')
566
+ method.define_rest_argument('args')
567
+ end
568
+
569
+ klass.define_instance_method('putc') do |method|
570
+ method.define_argument('obj')
571
+ end
572
+
573
+ klass.define_instance_method('puts') do |method|
574
+ method.define_rest_argument('args')
575
+ end
576
+
577
+ klass.define_instance_method('query') do |method|
578
+ method.define_argument('which')
579
+ end
580
+
581
+ klass.define_instance_method('raw_write') do |method|
582
+ method.define_argument('str')
583
+ end
584
+
585
+ klass.define_instance_method('read') do |method|
586
+ method.define_optional_argument('length')
587
+ method.define_optional_argument('buffer')
588
+ end
589
+
590
+ klass.define_instance_method('read_bom_byte')
591
+
592
+ klass.define_instance_method('read_nonblock') do |method|
593
+ method.define_argument('size')
594
+ method.define_optional_argument('buffer')
595
+ end
596
+
597
+ klass.define_instance_method('read_primitive') do |method|
598
+ method.define_argument('number_of_bytes')
599
+ end
600
+
601
+ klass.define_instance_method('readbyte')
602
+
603
+ klass.define_instance_method('readchar')
604
+
605
+ klass.define_instance_method('readline') do |method|
606
+ method.define_optional_argument('sep')
607
+ end
608
+
609
+ klass.define_instance_method('readlines') do |method|
610
+ method.define_optional_argument('sep')
611
+ end
612
+
613
+ klass.define_instance_method('readpartial') do |method|
614
+ method.define_argument('size')
615
+ method.define_optional_argument('buffer')
616
+ end
617
+
618
+ klass.define_instance_method('recv') do |method|
619
+ method.define_argument('bytes_to_read')
620
+ method.define_optional_argument('flags')
621
+ end
622
+
623
+ klass.define_instance_method('recv_nonblock') do |method|
624
+ method.define_argument('bytes_to_read')
625
+ method.define_optional_argument('flags')
626
+ end
627
+
628
+ klass.define_instance_method('recvfrom') do |method|
629
+ method.define_argument('bytes_to_read')
630
+ method.define_optional_argument('flags')
631
+ end
632
+
633
+ klass.define_instance_method('reduce') do |method|
634
+ method.define_optional_argument('initial')
635
+ method.define_optional_argument('sym')
636
+ end
637
+
638
+ klass.define_instance_method('reject')
639
+
640
+ klass.define_instance_method('reopen') do |method|
641
+ method.define_argument('other')
642
+ method.define_optional_argument('mode')
643
+ end
644
+
645
+ klass.define_instance_method('reopen_io') do |method|
646
+ method.define_argument('other')
647
+ end
648
+
649
+ klass.define_instance_method('reopen_path') do |method|
650
+ method.define_argument('string')
651
+ method.define_argument('mode')
652
+ end
653
+
654
+ klass.define_instance_method('reset_buffering')
655
+
656
+ klass.define_instance_method('reverse_each')
657
+
658
+ klass.define_instance_method('rewind')
659
+
660
+ klass.define_instance_method('scanf') do |method|
661
+ method.define_argument('str')
662
+ method.define_block_argument('b')
663
+ end
664
+
665
+ klass.define_instance_method('seek') do |method|
666
+ method.define_argument('amount')
667
+ method.define_optional_argument('whence')
668
+ end
669
+
670
+ klass.define_instance_method('select')
671
+
672
+ klass.define_instance_method('set_encoding') do |method|
673
+ method.define_argument('external')
674
+ method.define_optional_argument('internal')
675
+ method.define_optional_argument('options')
676
+ end
677
+
678
+ klass.define_instance_method('setsockopt') do |method|
679
+ method.define_argument('level_or_option')
680
+ method.define_optional_argument('optname')
681
+ method.define_optional_argument('optval')
682
+ end
683
+
684
+ klass.define_instance_method('shutdown') do |method|
685
+ method.define_optional_argument('how')
686
+ end
687
+
688
+ klass.define_instance_method('slice_before') do |method|
689
+ method.define_optional_argument('arg')
690
+ end
691
+
692
+ klass.define_instance_method('socket_recv') do |method|
693
+ method.define_argument('bytes')
694
+ method.define_argument('flags')
695
+ method.define_argument('type')
696
+ end
697
+
698
+ klass.define_instance_method('sort')
699
+
700
+ klass.define_instance_method('sort_by')
701
+
702
+ klass.define_instance_method('stat')
703
+
704
+ klass.define_instance_method('strip_bom')
705
+
706
+ klass.define_instance_method('sync')
707
+
708
+ klass.define_instance_method('sync=') do |method|
709
+ method.define_argument('v')
710
+ end
711
+
712
+ klass.define_instance_method('sysread') do |method|
713
+ method.define_argument('number_of_bytes')
714
+ method.define_optional_argument('buffer')
715
+ end
716
+
717
+ klass.define_instance_method('sysseek') do |method|
718
+ method.define_argument('amount')
719
+ method.define_optional_argument('whence')
720
+ end
721
+
722
+ klass.define_instance_method('syswrite') do |method|
723
+ method.define_argument('data')
724
+ end
725
+
726
+ klass.define_instance_method('take') do |method|
727
+ method.define_argument('n')
728
+ end
729
+
730
+ klass.define_instance_method('take_while')
731
+
732
+ klass.define_instance_method('tell')
733
+
734
+ klass.define_instance_method('to_a') do |method|
735
+ method.define_rest_argument('arg')
736
+ end
737
+
738
+ klass.define_instance_method('to_i')
739
+
740
+ klass.define_instance_method('to_io')
741
+
742
+ klass.define_instance_method('to_set') do |method|
743
+ method.define_optional_argument('klass')
744
+ method.define_rest_argument('args')
745
+ method.define_block_argument('block')
746
+ end
747
+
748
+ klass.define_instance_method('tty?')
749
+
750
+ klass.define_instance_method('ttyname')
751
+
752
+ klass.define_instance_method('ungetbyte') do |method|
753
+ method.define_argument('obj')
754
+ end
755
+
756
+ klass.define_instance_method('ungetc') do |method|
757
+ method.define_argument('obj')
758
+ end
759
+
760
+ klass.define_instance_method('with_object') do |method|
761
+ method.define_argument('memo')
762
+ end
763
+
764
+ klass.define_instance_method('write') do |method|
765
+ method.define_argument('data')
766
+ end
767
+
768
+ klass.define_instance_method('write_nonblock') do |method|
769
+ method.define_argument('data')
770
+ end
771
+
772
+ klass.define_instance_method('zip') do |method|
773
+ method.define_rest_argument('args')
774
+ end
775
+ end
776
+
777
+ RubyLint::GlobalScope.definitions.lookup(:const, 'Socket').deep_freeze