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.
- checksums.yaml +4 -4
- data/.editorconfig +15 -0
- data/MANIFEST +93 -0
- data/checksum/ruby-lint-1.0.0.pre.preview1.gem.sha512 +1 -0
- data/doc/changelog.md +40 -0
- data/lib/ruby-lint.rb +1 -1
- data/lib/ruby-lint/definitions/core/abbrev.rb +18 -0
- data/lib/ruby-lint/definitions/core/base64.rb +37 -0
- data/lib/ruby-lint/definitions/core/basic_socket.rb +685 -0
- data/lib/ruby-lint/definitions/core/benchmark.rb +41 -0
- data/lib/ruby-lint/definitions/core/cgi.rb +93 -0
- data/lib/ruby-lint/definitions/core/common_headers.rb +555 -0
- data/lib/ruby-lint/definitions/core/common_libs.rb +428 -0
- data/lib/ruby-lint/definitions/core/config.rb +325 -0
- data/lib/ruby-lint/definitions/core/conftest_c.rb +555 -0
- data/lib/ruby-lint/definitions/core/coutflag.rb +555 -0
- data/lib/ruby-lint/definitions/core/csv.rb +488 -0
- data/lib/ruby-lint/definitions/core/delegator.rb +73 -0
- data/lib/ruby-lint/definitions/core/drb.rb +69 -0
- data/lib/ruby-lint/definitions/core/drb_id_conv.rb +27 -0
- data/lib/ruby-lint/definitions/core/drb_object.rb +81 -0
- data/lib/ruby-lint/definitions/core/drb_undumped.rb +17 -0
- data/lib/ruby-lint/definitions/core/exception_for_matrix.rb +57 -0
- data/lib/ruby-lint/definitions/core/export_prefix.rb +23 -0
- data/lib/ruby-lint/definitions/core/failed_message.rb +555 -0
- data/lib/ruby-lint/definitions/core/fcntl.rb +13 -0
- data/lib/ruby-lint/definitions/core/find.rb +19 -0
- data/lib/ruby-lint/definitions/core/forwardable.rb +47 -0
- data/lib/ruby-lint/definitions/core/getopt_long.rb +60 -0
- data/lib/ruby-lint/definitions/core/gserver.rb +92 -0
- data/lib/ruby-lint/definitions/core/hdr_ext.rb +428 -0
- data/lib/ruby-lint/definitions/core/install_dirs.rb +428 -0
- data/lib/ruby-lint/definitions/core/ipaddr.rb +140 -0
- data/lib/ruby-lint/definitions/core/ipsocket.rb +696 -0
- data/lib/ruby-lint/definitions/core/irb.rb +64 -0
- data/lib/ruby-lint/definitions/core/json.rb +128 -0
- data/lib/ruby-lint/definitions/core/kconv.rb +67 -0
- data/lib/ruby-lint/definitions/core/libarg.rb +555 -0
- data/lib/ruby-lint/definitions/core/libpathflag.rb +555 -0
- data/lib/ruby-lint/definitions/core/link_so.rb +555 -0
- data/lib/ruby-lint/definitions/core/logger.rb +105 -0
- data/lib/ruby-lint/definitions/core/logging.rb +33 -0
- data/lib/ruby-lint/definitions/core/make_makefile.rb +495 -0
- data/lib/ruby-lint/definitions/core/matrix.rb +455 -0
- data/lib/ruby-lint/definitions/core/md5.rb +80 -0
- data/lib/ruby-lint/definitions/core/mutex_m.rb +43 -0
- data/lib/ruby-lint/definitions/core/nkf.rb +17 -0
- data/lib/ruby-lint/definitions/core/observable.rb +36 -0
- data/lib/ruby-lint/definitions/core/open3.rb +67 -0
- data/lib/ruby-lint/definitions/core/open_ssl.rb +25 -0
- data/lib/ruby-lint/definitions/core/open_uri.rb +43 -0
- data/lib/ruby-lint/definitions/core/orig_libpath.rb +39 -0
- data/lib/ruby-lint/definitions/core/outflag.rb +555 -0
- data/lib/ruby-lint/definitions/core/pathname.rb +287 -0
- data/lib/ruby-lint/definitions/core/pp.rb +154 -0
- data/lib/ruby-lint/definitions/core/pretty_print.rb +87 -0
- data/lib/ruby-lint/definitions/core/prime.rb +369 -0
- data/lib/ruby-lint/definitions/core/profiler__.rb +25 -0
- data/lib/ruby-lint/definitions/core/pstore.rb +61 -0
- data/lib/ruby-lint/definitions/core/psych.rb +139 -0
- data/lib/ruby-lint/definitions/core/rdoc.rb +15 -0
- data/lib/ruby-lint/definitions/core/readline.rb +79 -0
- data/lib/ruby-lint/definitions/core/resolv.rb +71 -0
- data/lib/ruby-lint/definitions/core/rexml.rb +13 -0
- data/lib/ruby-lint/definitions/core/rpathflag.rb +555 -0
- data/lib/ruby-lint/definitions/core/rss.rb +13 -0
- data/lib/ruby-lint/definitions/core/ruby_revision.rb +253 -0
- data/lib/ruby-lint/definitions/core/scanf.rb +13 -0
- data/lib/ruby-lint/definitions/core/secure_random.rb +38 -0
- data/lib/ruby-lint/definitions/core/set.rb +584 -0
- data/lib/ruby-lint/definitions/core/sha1.rb +80 -0
- data/lib/ruby-lint/definitions/core/simple_delegator.rb +37 -0
- data/lib/ruby-lint/definitions/core/single_forwardable.rb +43 -0
- data/lib/ruby-lint/definitions/core/socket.rb +777 -0
- data/lib/ruby-lint/definitions/core/socket_error.rb +61 -0
- data/lib/ruby-lint/definitions/core/sorted_set.rb +296 -0
- data/lib/ruby-lint/definitions/core/src_ext.rb +428 -0
- data/lib/ruby-lint/definitions/core/tcpserver.rb +707 -0
- data/lib/ruby-lint/definitions/core/tcpsocket.rb +707 -0
- data/lib/ruby-lint/definitions/core/tempfile.rb +860 -0
- data/lib/ruby-lint/definitions/core/th_wait.rb +89 -0
- data/lib/ruby-lint/definitions/core/threads_wait.rb +89 -0
- data/lib/ruby-lint/definitions/core/timeout.rb +25 -0
- data/lib/ruby-lint/definitions/core/timeout_error.rb +61 -0
- data/lib/ruby-lint/definitions/core/try_link.rb +555 -0
- data/lib/ruby-lint/definitions/core/tsort.rb +33 -0
- data/lib/ruby-lint/definitions/core/udpsocket.rb +712 -0
- data/lib/ruby-lint/definitions/core/universal_ints.rb +428 -0
- data/lib/ruby-lint/definitions/core/unixserver.rb +710 -0
- data/lib/ruby-lint/definitions/core/unixsocket.rb +702 -0
- data/lib/ruby-lint/definitions/core/uri.rb +71 -0
- data/lib/ruby-lint/definitions/core/vector.rb +323 -0
- data/lib/ruby-lint/definitions/core/webrick.rb +13 -0
- data/lib/ruby-lint/definitions/core/xmlrpc.rb +13 -0
- data/lib/ruby-lint/version.rb +1 -1
- data/misc/stdlib.rb +66 -0
- data/ruby-lint.gemspec +1 -1
- data/spec/fixtures/deeply/nested/file.rb +1 -0
- data/spec/ruby-lint/virtual_machine/assignments/range_spec.rb +28 -0
- data/task/build.rake +1 -1
- data/task/tag.rake +1 -1
- metadata +101 -8
@@ -0,0 +1,555 @@
|
|
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('LINK_SO') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('%') do |method|
|
11
|
+
method.define_argument('args')
|
12
|
+
end
|
13
|
+
|
14
|
+
klass.define_method('*') do |method|
|
15
|
+
method.define_argument('num')
|
16
|
+
end
|
17
|
+
|
18
|
+
klass.define_method('+') do |method|
|
19
|
+
method.define_argument('other')
|
20
|
+
end
|
21
|
+
|
22
|
+
klass.define_method('<<') do |method|
|
23
|
+
method.define_argument('other')
|
24
|
+
end
|
25
|
+
|
26
|
+
klass.define_method('[]') do |method|
|
27
|
+
method.define_argument('index')
|
28
|
+
method.define_optional_argument('other')
|
29
|
+
end
|
30
|
+
|
31
|
+
klass.define_method('[]=') do |method|
|
32
|
+
method.define_argument('index')
|
33
|
+
method.define_argument('count_or_replacement')
|
34
|
+
method.define_optional_argument('replacement')
|
35
|
+
end
|
36
|
+
|
37
|
+
klass.define_method('__crypt__') do |method|
|
38
|
+
method.define_argument('other_str')
|
39
|
+
end
|
40
|
+
|
41
|
+
klass.define_method('__data__')
|
42
|
+
|
43
|
+
klass.define_method('__data__=')
|
44
|
+
|
45
|
+
klass.define_method('append') do |method|
|
46
|
+
method.define_argument('str')
|
47
|
+
end
|
48
|
+
|
49
|
+
klass.define_method('apply_and!') do |method|
|
50
|
+
method.define_argument('other')
|
51
|
+
end
|
52
|
+
|
53
|
+
klass.define_method('ascii_only=')
|
54
|
+
|
55
|
+
klass.define_method('ascii_only?')
|
56
|
+
|
57
|
+
klass.define_method('b')
|
58
|
+
|
59
|
+
klass.define_method('between?') do |method|
|
60
|
+
method.define_argument('min')
|
61
|
+
method.define_argument('max')
|
62
|
+
end
|
63
|
+
|
64
|
+
klass.define_method('block_scanf') do |method|
|
65
|
+
method.define_argument('fstr')
|
66
|
+
method.define_block_argument('b')
|
67
|
+
end
|
68
|
+
|
69
|
+
klass.define_method('byte_append') do |method|
|
70
|
+
method.define_argument('str')
|
71
|
+
end
|
72
|
+
|
73
|
+
klass.define_method('bytes')
|
74
|
+
|
75
|
+
klass.define_method('bytesize')
|
76
|
+
|
77
|
+
klass.define_method('byteslice') do |method|
|
78
|
+
method.define_argument('index_or_range')
|
79
|
+
method.define_optional_argument('length')
|
80
|
+
end
|
81
|
+
|
82
|
+
klass.define_method('capitalize')
|
83
|
+
|
84
|
+
klass.define_method('capitalize!')
|
85
|
+
|
86
|
+
klass.define_method('casecmp') do |method|
|
87
|
+
method.define_argument('to')
|
88
|
+
end
|
89
|
+
|
90
|
+
klass.define_method('center') do |method|
|
91
|
+
method.define_argument('width')
|
92
|
+
method.define_optional_argument('padding')
|
93
|
+
end
|
94
|
+
|
95
|
+
klass.define_method('chars')
|
96
|
+
|
97
|
+
klass.define_method('chomp') do |method|
|
98
|
+
method.define_optional_argument('separator')
|
99
|
+
end
|
100
|
+
|
101
|
+
klass.define_method('chomp!') do |method|
|
102
|
+
method.define_optional_argument('sep')
|
103
|
+
end
|
104
|
+
|
105
|
+
klass.define_method('chop')
|
106
|
+
|
107
|
+
klass.define_method('chop!')
|
108
|
+
|
109
|
+
klass.define_method('chr')
|
110
|
+
|
111
|
+
klass.define_method('chr_at') do |method|
|
112
|
+
method.define_argument('byte')
|
113
|
+
end
|
114
|
+
|
115
|
+
klass.define_method('clear')
|
116
|
+
|
117
|
+
klass.define_method('codepoints')
|
118
|
+
|
119
|
+
klass.define_method('compare_substring') do |method|
|
120
|
+
method.define_argument('other')
|
121
|
+
method.define_argument('start')
|
122
|
+
method.define_argument('size')
|
123
|
+
end
|
124
|
+
|
125
|
+
klass.define_method('concat') do |method|
|
126
|
+
method.define_argument('other')
|
127
|
+
end
|
128
|
+
|
129
|
+
klass.define_method('convert_float')
|
130
|
+
|
131
|
+
klass.define_method('count') do |method|
|
132
|
+
method.define_rest_argument('strings')
|
133
|
+
end
|
134
|
+
|
135
|
+
klass.define_method('count_table') do |method|
|
136
|
+
method.define_rest_argument('strings')
|
137
|
+
end
|
138
|
+
|
139
|
+
klass.define_method('crypt') do |method|
|
140
|
+
method.define_argument('other_str')
|
141
|
+
end
|
142
|
+
|
143
|
+
klass.define_method('data')
|
144
|
+
|
145
|
+
klass.define_method('data=')
|
146
|
+
|
147
|
+
klass.define_method('delete') do |method|
|
148
|
+
method.define_rest_argument('strings')
|
149
|
+
end
|
150
|
+
|
151
|
+
klass.define_method('delete!') do |method|
|
152
|
+
method.define_rest_argument('strings')
|
153
|
+
end
|
154
|
+
|
155
|
+
klass.define_method('downcase')
|
156
|
+
|
157
|
+
klass.define_method('downcase!')
|
158
|
+
|
159
|
+
klass.define_method('dump')
|
160
|
+
|
161
|
+
klass.define_method('each_byte')
|
162
|
+
|
163
|
+
klass.define_method('each_char')
|
164
|
+
|
165
|
+
klass.define_method('each_codepoint')
|
166
|
+
|
167
|
+
klass.define_method('each_line') do |method|
|
168
|
+
method.define_optional_argument('sep')
|
169
|
+
end
|
170
|
+
|
171
|
+
klass.define_method('empty?')
|
172
|
+
|
173
|
+
klass.define_method('encode') do |method|
|
174
|
+
method.define_optional_argument('to')
|
175
|
+
method.define_optional_argument('from')
|
176
|
+
method.define_optional_argument('options')
|
177
|
+
end
|
178
|
+
|
179
|
+
klass.define_method('encode!') do |method|
|
180
|
+
method.define_optional_argument('to')
|
181
|
+
method.define_optional_argument('from')
|
182
|
+
method.define_optional_argument('options')
|
183
|
+
end
|
184
|
+
|
185
|
+
klass.define_method('encoding')
|
186
|
+
|
187
|
+
klass.define_method('encoding=')
|
188
|
+
|
189
|
+
klass.define_method('end_with?') do |method|
|
190
|
+
method.define_rest_argument('suffixes')
|
191
|
+
end
|
192
|
+
|
193
|
+
klass.define_method('ext') do |method|
|
194
|
+
method.define_optional_argument('newext')
|
195
|
+
end
|
196
|
+
|
197
|
+
klass.define_method('find_character') do |method|
|
198
|
+
method.define_argument('offset')
|
199
|
+
end
|
200
|
+
|
201
|
+
klass.define_method('find_string') do |method|
|
202
|
+
method.define_argument('pattern')
|
203
|
+
method.define_argument('start')
|
204
|
+
end
|
205
|
+
|
206
|
+
klass.define_method('find_string_reverse') do |method|
|
207
|
+
method.define_argument('pattern')
|
208
|
+
method.define_argument('start')
|
209
|
+
end
|
210
|
+
|
211
|
+
klass.define_method('force_encoding') do |method|
|
212
|
+
method.define_argument('enc')
|
213
|
+
end
|
214
|
+
|
215
|
+
klass.define_method('funcall_style')
|
216
|
+
|
217
|
+
klass.define_method('getbyte') do |method|
|
218
|
+
method.define_argument('index')
|
219
|
+
end
|
220
|
+
|
221
|
+
klass.define_method('gsub') do |method|
|
222
|
+
method.define_argument('pattern')
|
223
|
+
method.define_optional_argument('replacement')
|
224
|
+
end
|
225
|
+
|
226
|
+
klass.define_method('gsub!') do |method|
|
227
|
+
method.define_argument('pattern')
|
228
|
+
method.define_optional_argument('replacement')
|
229
|
+
end
|
230
|
+
|
231
|
+
klass.define_method('hex')
|
232
|
+
|
233
|
+
klass.define_method('index') do |method|
|
234
|
+
method.define_argument('str')
|
235
|
+
method.define_optional_argument('start')
|
236
|
+
end
|
237
|
+
|
238
|
+
klass.define_method('insert') do |method|
|
239
|
+
method.define_argument('index')
|
240
|
+
method.define_argument('other')
|
241
|
+
end
|
242
|
+
|
243
|
+
klass.define_method('intern')
|
244
|
+
|
245
|
+
klass.define_method('iseuc')
|
246
|
+
|
247
|
+
klass.define_method('isjis')
|
248
|
+
|
249
|
+
klass.define_method('issjis')
|
250
|
+
|
251
|
+
klass.define_method('isutf8')
|
252
|
+
|
253
|
+
klass.define_method('kconv') do |method|
|
254
|
+
method.define_argument('to_enc')
|
255
|
+
method.define_optional_argument('from_enc')
|
256
|
+
end
|
257
|
+
|
258
|
+
klass.define_method('length')
|
259
|
+
|
260
|
+
klass.define_method('lines') do |method|
|
261
|
+
method.define_optional_argument('sep')
|
262
|
+
end
|
263
|
+
|
264
|
+
klass.define_method('ljust') do |method|
|
265
|
+
method.define_argument('width')
|
266
|
+
method.define_optional_argument('padding')
|
267
|
+
end
|
268
|
+
|
269
|
+
klass.define_method('lstrip')
|
270
|
+
|
271
|
+
klass.define_method('lstrip!')
|
272
|
+
|
273
|
+
klass.define_method('match') do |method|
|
274
|
+
method.define_argument('pattern')
|
275
|
+
method.define_optional_argument('pos')
|
276
|
+
end
|
277
|
+
|
278
|
+
klass.define_method('modify!')
|
279
|
+
|
280
|
+
klass.define_method('next')
|
281
|
+
|
282
|
+
klass.define_method('next!')
|
283
|
+
|
284
|
+
klass.define_method('num_bytes')
|
285
|
+
|
286
|
+
klass.define_method('num_bytes=') do |method|
|
287
|
+
method.define_argument('bytes')
|
288
|
+
end
|
289
|
+
|
290
|
+
klass.define_method('oct')
|
291
|
+
|
292
|
+
klass.define_method('ord')
|
293
|
+
|
294
|
+
klass.define_method('parse_csv') do |method|
|
295
|
+
method.define_optional_argument('options')
|
296
|
+
end
|
297
|
+
|
298
|
+
klass.define_method('partition') do |method|
|
299
|
+
method.define_optional_argument('pattern')
|
300
|
+
end
|
301
|
+
|
302
|
+
klass.define_method('pathmap') do |method|
|
303
|
+
method.define_optional_argument('spec')
|
304
|
+
method.define_block_argument('block')
|
305
|
+
end
|
306
|
+
|
307
|
+
klass.define_method('pathmap_explode')
|
308
|
+
|
309
|
+
klass.define_method('pathmap_partial') do |method|
|
310
|
+
method.define_argument('n')
|
311
|
+
end
|
312
|
+
|
313
|
+
klass.define_method('pathmap_replace') do |method|
|
314
|
+
method.define_argument('patterns')
|
315
|
+
method.define_block_argument('block')
|
316
|
+
end
|
317
|
+
|
318
|
+
klass.define_method('prefix?') do |method|
|
319
|
+
method.define_argument('other')
|
320
|
+
end
|
321
|
+
|
322
|
+
klass.define_method('quote')
|
323
|
+
|
324
|
+
klass.define_method('replace') do |method|
|
325
|
+
method.define_argument('other')
|
326
|
+
end
|
327
|
+
|
328
|
+
klass.define_method('reverse')
|
329
|
+
|
330
|
+
klass.define_method('reverse!')
|
331
|
+
|
332
|
+
klass.define_method('rindex') do |method|
|
333
|
+
method.define_argument('sub')
|
334
|
+
method.define_optional_argument('finish')
|
335
|
+
end
|
336
|
+
|
337
|
+
klass.define_method('rjust') do |method|
|
338
|
+
method.define_argument('width')
|
339
|
+
method.define_optional_argument('padding')
|
340
|
+
end
|
341
|
+
|
342
|
+
klass.define_method('rpartition') do |method|
|
343
|
+
method.define_argument('pattern')
|
344
|
+
end
|
345
|
+
|
346
|
+
klass.define_method('rstrip')
|
347
|
+
|
348
|
+
klass.define_method('rstrip!')
|
349
|
+
|
350
|
+
klass.define_method('sans_arguments')
|
351
|
+
|
352
|
+
klass.define_method('scan') do |method|
|
353
|
+
method.define_argument('pattern')
|
354
|
+
end
|
355
|
+
|
356
|
+
klass.define_method('scanf') do |method|
|
357
|
+
method.define_argument('fstr')
|
358
|
+
method.define_block_argument('b')
|
359
|
+
end
|
360
|
+
|
361
|
+
klass.define_method('secure_compare') do |method|
|
362
|
+
method.define_argument('other')
|
363
|
+
end
|
364
|
+
|
365
|
+
klass.define_method('setbyte') do |method|
|
366
|
+
method.define_argument('index')
|
367
|
+
method.define_argument('byte')
|
368
|
+
end
|
369
|
+
|
370
|
+
klass.define_method('shared!')
|
371
|
+
|
372
|
+
klass.define_method('shellescape')
|
373
|
+
|
374
|
+
klass.define_method('shellsplit')
|
375
|
+
|
376
|
+
klass.define_method('shorten!') do |method|
|
377
|
+
method.define_argument('size')
|
378
|
+
end
|
379
|
+
|
380
|
+
klass.define_method('size')
|
381
|
+
|
382
|
+
klass.define_method('slice') do |method|
|
383
|
+
method.define_argument('index')
|
384
|
+
method.define_optional_argument('other')
|
385
|
+
end
|
386
|
+
|
387
|
+
klass.define_method('slice!') do |method|
|
388
|
+
method.define_argument('one')
|
389
|
+
method.define_optional_argument('two')
|
390
|
+
end
|
391
|
+
|
392
|
+
klass.define_method('snake_case')
|
393
|
+
|
394
|
+
klass.define_method('split') do |method|
|
395
|
+
method.define_optional_argument('pattern')
|
396
|
+
method.define_optional_argument('limit')
|
397
|
+
end
|
398
|
+
|
399
|
+
klass.define_method('squeeze') do |method|
|
400
|
+
method.define_rest_argument('strings')
|
401
|
+
end
|
402
|
+
|
403
|
+
klass.define_method('squeeze!') do |method|
|
404
|
+
method.define_rest_argument('strings')
|
405
|
+
end
|
406
|
+
|
407
|
+
klass.define_method('start_with?') do |method|
|
408
|
+
method.define_rest_argument('prefixes')
|
409
|
+
end
|
410
|
+
|
411
|
+
klass.define_method('strip')
|
412
|
+
|
413
|
+
klass.define_method('strip!')
|
414
|
+
|
415
|
+
klass.define_method('sub') do |method|
|
416
|
+
method.define_argument('pattern')
|
417
|
+
method.define_optional_argument('replacement')
|
418
|
+
end
|
419
|
+
|
420
|
+
klass.define_method('sub!') do |method|
|
421
|
+
method.define_argument('pattern')
|
422
|
+
method.define_optional_argument('replacement')
|
423
|
+
end
|
424
|
+
|
425
|
+
klass.define_method('substring') do |method|
|
426
|
+
method.define_argument('start')
|
427
|
+
method.define_argument('count')
|
428
|
+
end
|
429
|
+
|
430
|
+
klass.define_method('succ')
|
431
|
+
|
432
|
+
klass.define_method('succ!')
|
433
|
+
|
434
|
+
klass.define_method('suffix?') do |method|
|
435
|
+
method.define_argument('other')
|
436
|
+
end
|
437
|
+
|
438
|
+
klass.define_method('sum') do |method|
|
439
|
+
method.define_optional_argument('bits')
|
440
|
+
end
|
441
|
+
|
442
|
+
klass.define_method('swapcase')
|
443
|
+
|
444
|
+
klass.define_method('swapcase!')
|
445
|
+
|
446
|
+
klass.define_method('to_ast') do |method|
|
447
|
+
method.define_optional_argument('name')
|
448
|
+
method.define_optional_argument('line')
|
449
|
+
end
|
450
|
+
|
451
|
+
klass.define_method('to_c')
|
452
|
+
|
453
|
+
klass.define_method('to_f')
|
454
|
+
|
455
|
+
klass.define_method('to_i') do |method|
|
456
|
+
method.define_optional_argument('base')
|
457
|
+
end
|
458
|
+
|
459
|
+
klass.define_method('to_inum') do |method|
|
460
|
+
method.define_argument('base')
|
461
|
+
method.define_argument('check')
|
462
|
+
end
|
463
|
+
|
464
|
+
klass.define_method('to_json_raw')
|
465
|
+
|
466
|
+
klass.define_method('to_json_raw_object')
|
467
|
+
|
468
|
+
klass.define_method('to_r')
|
469
|
+
|
470
|
+
klass.define_method('to_sexp') do |method|
|
471
|
+
method.define_optional_argument('name')
|
472
|
+
method.define_optional_argument('line')
|
473
|
+
end
|
474
|
+
|
475
|
+
klass.define_method('to_str')
|
476
|
+
|
477
|
+
klass.define_method('to_sub_replacement') do |method|
|
478
|
+
method.define_argument('result')
|
479
|
+
method.define_argument('match')
|
480
|
+
end
|
481
|
+
|
482
|
+
klass.define_method('to_sym')
|
483
|
+
|
484
|
+
klass.define_method('toeuc')
|
485
|
+
|
486
|
+
klass.define_method('tojis')
|
487
|
+
|
488
|
+
klass.define_method('tolocale')
|
489
|
+
|
490
|
+
klass.define_method('tosjis')
|
491
|
+
|
492
|
+
klass.define_method('toutf16')
|
493
|
+
|
494
|
+
klass.define_method('toutf32')
|
495
|
+
|
496
|
+
klass.define_method('toutf8')
|
497
|
+
|
498
|
+
klass.define_method('tr') do |method|
|
499
|
+
method.define_argument('source')
|
500
|
+
method.define_argument('replacement')
|
501
|
+
end
|
502
|
+
|
503
|
+
klass.define_method('tr!') do |method|
|
504
|
+
method.define_argument('source')
|
505
|
+
method.define_argument('replacement')
|
506
|
+
end
|
507
|
+
|
508
|
+
klass.define_method('tr_cpp')
|
509
|
+
|
510
|
+
klass.define_method('tr_expand!') do |method|
|
511
|
+
method.define_argument('limit')
|
512
|
+
method.define_argument('invalid_as_empty')
|
513
|
+
end
|
514
|
+
|
515
|
+
klass.define_method('tr_s') do |method|
|
516
|
+
method.define_argument('source')
|
517
|
+
method.define_argument('replacement')
|
518
|
+
end
|
519
|
+
|
520
|
+
klass.define_method('tr_s!') do |method|
|
521
|
+
method.define_argument('source')
|
522
|
+
method.define_argument('replacement')
|
523
|
+
end
|
524
|
+
|
525
|
+
klass.define_method('tr_trans') do |method|
|
526
|
+
method.define_argument('source')
|
527
|
+
method.define_argument('replacement')
|
528
|
+
method.define_argument('squeeze')
|
529
|
+
end
|
530
|
+
|
531
|
+
klass.define_method('transform') do |method|
|
532
|
+
method.define_argument('tbl')
|
533
|
+
end
|
534
|
+
|
535
|
+
klass.define_method('unpack') do |method|
|
536
|
+
method.define_argument('directives')
|
537
|
+
end
|
538
|
+
|
539
|
+
klass.define_method('unspace')
|
540
|
+
|
541
|
+
klass.define_method('upcase')
|
542
|
+
|
543
|
+
klass.define_method('upcase!')
|
544
|
+
|
545
|
+
klass.define_method('upto') do |method|
|
546
|
+
method.define_argument('stop')
|
547
|
+
method.define_optional_argument('exclusive')
|
548
|
+
end
|
549
|
+
|
550
|
+
klass.define_method('valid_encoding=')
|
551
|
+
|
552
|
+
klass.define_method('valid_encoding?')
|
553
|
+
end
|
554
|
+
|
555
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'LINK_SO').deep_freeze
|