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,287 @@
|
|
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('Pathname') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('getwd')
|
11
|
+
|
12
|
+
klass.define_method('glob') do |method|
|
13
|
+
method.define_rest_argument('args')
|
14
|
+
end
|
15
|
+
|
16
|
+
klass.define_method('pwd')
|
17
|
+
|
18
|
+
klass.define_instance_method('+') do |method|
|
19
|
+
method.define_argument('other')
|
20
|
+
end
|
21
|
+
|
22
|
+
klass.define_instance_method('<=>') do |method|
|
23
|
+
method.define_argument('other')
|
24
|
+
end
|
25
|
+
|
26
|
+
klass.define_instance_method('==') do |method|
|
27
|
+
method.define_argument('other')
|
28
|
+
end
|
29
|
+
|
30
|
+
klass.define_instance_method('===') do |method|
|
31
|
+
method.define_argument('other')
|
32
|
+
end
|
33
|
+
|
34
|
+
klass.define_instance_method('absolute?')
|
35
|
+
|
36
|
+
klass.define_instance_method('ascend')
|
37
|
+
|
38
|
+
klass.define_instance_method('atime')
|
39
|
+
|
40
|
+
klass.define_instance_method('basename') do |method|
|
41
|
+
method.define_rest_argument('args')
|
42
|
+
end
|
43
|
+
|
44
|
+
klass.define_instance_method('binread') do |method|
|
45
|
+
method.define_rest_argument('args')
|
46
|
+
end
|
47
|
+
|
48
|
+
klass.define_instance_method('blockdev?')
|
49
|
+
|
50
|
+
klass.define_instance_method('chardev?')
|
51
|
+
|
52
|
+
klass.define_instance_method('children') do |method|
|
53
|
+
method.define_optional_argument('with_directory')
|
54
|
+
end
|
55
|
+
|
56
|
+
klass.define_instance_method('chmod') do |method|
|
57
|
+
method.define_argument('mode')
|
58
|
+
end
|
59
|
+
|
60
|
+
klass.define_instance_method('chown') do |method|
|
61
|
+
method.define_argument('owner')
|
62
|
+
method.define_argument('group')
|
63
|
+
end
|
64
|
+
|
65
|
+
klass.define_instance_method('cleanpath') do |method|
|
66
|
+
method.define_optional_argument('consider_symlink')
|
67
|
+
end
|
68
|
+
|
69
|
+
klass.define_instance_method('ctime')
|
70
|
+
|
71
|
+
klass.define_instance_method('delete')
|
72
|
+
|
73
|
+
klass.define_instance_method('descend')
|
74
|
+
|
75
|
+
klass.define_instance_method('directory?')
|
76
|
+
|
77
|
+
klass.define_instance_method('dirname')
|
78
|
+
|
79
|
+
klass.define_instance_method('each_child') do |method|
|
80
|
+
method.define_optional_argument('with_directory')
|
81
|
+
method.define_block_argument('b')
|
82
|
+
end
|
83
|
+
|
84
|
+
klass.define_instance_method('each_entry') do |method|
|
85
|
+
method.define_block_argument('block')
|
86
|
+
end
|
87
|
+
|
88
|
+
klass.define_instance_method('each_filename')
|
89
|
+
|
90
|
+
klass.define_instance_method('each_line') do |method|
|
91
|
+
method.define_rest_argument('args')
|
92
|
+
method.define_block_argument('block')
|
93
|
+
end
|
94
|
+
|
95
|
+
klass.define_instance_method('entries')
|
96
|
+
|
97
|
+
klass.define_instance_method('eql?') do |method|
|
98
|
+
method.define_argument('other')
|
99
|
+
end
|
100
|
+
|
101
|
+
klass.define_instance_method('executable?')
|
102
|
+
|
103
|
+
klass.define_instance_method('executable_real?')
|
104
|
+
|
105
|
+
klass.define_instance_method('exist?')
|
106
|
+
|
107
|
+
klass.define_instance_method('expand_path') do |method|
|
108
|
+
method.define_rest_argument('args')
|
109
|
+
end
|
110
|
+
|
111
|
+
klass.define_instance_method('extname')
|
112
|
+
|
113
|
+
klass.define_instance_method('file?')
|
114
|
+
|
115
|
+
klass.define_instance_method('find') do |method|
|
116
|
+
method.define_block_argument('block')
|
117
|
+
end
|
118
|
+
|
119
|
+
klass.define_instance_method('fnmatch') do |method|
|
120
|
+
method.define_argument('pattern')
|
121
|
+
method.define_rest_argument('args')
|
122
|
+
end
|
123
|
+
|
124
|
+
klass.define_instance_method('fnmatch?') do |method|
|
125
|
+
method.define_argument('pattern')
|
126
|
+
method.define_rest_argument('args')
|
127
|
+
end
|
128
|
+
|
129
|
+
klass.define_instance_method('freeze')
|
130
|
+
|
131
|
+
klass.define_instance_method('ftype')
|
132
|
+
|
133
|
+
klass.define_instance_method('grpowned?')
|
134
|
+
|
135
|
+
klass.define_instance_method('hash')
|
136
|
+
|
137
|
+
klass.define_instance_method('inspect')
|
138
|
+
|
139
|
+
klass.define_instance_method('join') do |method|
|
140
|
+
method.define_rest_argument('args')
|
141
|
+
end
|
142
|
+
|
143
|
+
klass.define_instance_method('lchmod') do |method|
|
144
|
+
method.define_argument('mode')
|
145
|
+
end
|
146
|
+
|
147
|
+
klass.define_instance_method('lchown') do |method|
|
148
|
+
method.define_argument('owner')
|
149
|
+
method.define_argument('group')
|
150
|
+
end
|
151
|
+
|
152
|
+
klass.define_instance_method('lstat')
|
153
|
+
|
154
|
+
klass.define_instance_method('make_link') do |method|
|
155
|
+
method.define_argument('old')
|
156
|
+
end
|
157
|
+
|
158
|
+
klass.define_instance_method('make_symlink') do |method|
|
159
|
+
method.define_argument('old')
|
160
|
+
end
|
161
|
+
|
162
|
+
klass.define_instance_method('mkdir') do |method|
|
163
|
+
method.define_rest_argument('args')
|
164
|
+
end
|
165
|
+
|
166
|
+
klass.define_instance_method('mkpath')
|
167
|
+
|
168
|
+
klass.define_instance_method('mountpoint?')
|
169
|
+
|
170
|
+
klass.define_instance_method('mtime')
|
171
|
+
|
172
|
+
klass.define_instance_method('open') do |method|
|
173
|
+
method.define_rest_argument('args')
|
174
|
+
method.define_block_argument('block')
|
175
|
+
end
|
176
|
+
|
177
|
+
klass.define_instance_method('opendir') do |method|
|
178
|
+
method.define_block_argument('block')
|
179
|
+
end
|
180
|
+
|
181
|
+
klass.define_instance_method('owned?')
|
182
|
+
|
183
|
+
klass.define_instance_method('parent')
|
184
|
+
|
185
|
+
klass.define_instance_method('pipe?')
|
186
|
+
|
187
|
+
klass.define_instance_method('read') do |method|
|
188
|
+
method.define_rest_argument('args')
|
189
|
+
end
|
190
|
+
|
191
|
+
klass.define_instance_method('readable?')
|
192
|
+
|
193
|
+
klass.define_instance_method('readable_real?')
|
194
|
+
|
195
|
+
klass.define_instance_method('readlines') do |method|
|
196
|
+
method.define_rest_argument('args')
|
197
|
+
end
|
198
|
+
|
199
|
+
klass.define_instance_method('readlink')
|
200
|
+
|
201
|
+
klass.define_instance_method('realdirpath') do |method|
|
202
|
+
method.define_optional_argument('basedir')
|
203
|
+
end
|
204
|
+
|
205
|
+
klass.define_instance_method('realpath') do |method|
|
206
|
+
method.define_optional_argument('basedir')
|
207
|
+
end
|
208
|
+
|
209
|
+
klass.define_instance_method('relative?')
|
210
|
+
|
211
|
+
klass.define_instance_method('relative_path_from') do |method|
|
212
|
+
method.define_argument('base_directory')
|
213
|
+
end
|
214
|
+
|
215
|
+
klass.define_instance_method('rename') do |method|
|
216
|
+
method.define_argument('to')
|
217
|
+
end
|
218
|
+
|
219
|
+
klass.define_instance_method('rmdir')
|
220
|
+
|
221
|
+
klass.define_instance_method('rmtree')
|
222
|
+
|
223
|
+
klass.define_instance_method('root?')
|
224
|
+
|
225
|
+
klass.define_instance_method('setgid?')
|
226
|
+
|
227
|
+
klass.define_instance_method('setuid?')
|
228
|
+
|
229
|
+
klass.define_instance_method('size')
|
230
|
+
|
231
|
+
klass.define_instance_method('size?')
|
232
|
+
|
233
|
+
klass.define_instance_method('socket?')
|
234
|
+
|
235
|
+
klass.define_instance_method('split')
|
236
|
+
|
237
|
+
klass.define_instance_method('stat')
|
238
|
+
|
239
|
+
klass.define_instance_method('sticky?')
|
240
|
+
|
241
|
+
klass.define_instance_method('sub') do |method|
|
242
|
+
method.define_argument('pattern')
|
243
|
+
method.define_rest_argument('rest')
|
244
|
+
method.define_block_argument('block')
|
245
|
+
end
|
246
|
+
|
247
|
+
klass.define_instance_method('sub_ext') do |method|
|
248
|
+
method.define_argument('repl')
|
249
|
+
end
|
250
|
+
|
251
|
+
klass.define_instance_method('symlink?')
|
252
|
+
|
253
|
+
klass.define_instance_method('sysopen') do |method|
|
254
|
+
method.define_rest_argument('args')
|
255
|
+
end
|
256
|
+
|
257
|
+
klass.define_instance_method('taint')
|
258
|
+
|
259
|
+
klass.define_instance_method('to_path')
|
260
|
+
|
261
|
+
klass.define_instance_method('to_s')
|
262
|
+
|
263
|
+
klass.define_instance_method('truncate') do |method|
|
264
|
+
method.define_argument('length')
|
265
|
+
end
|
266
|
+
|
267
|
+
klass.define_instance_method('unlink')
|
268
|
+
|
269
|
+
klass.define_instance_method('untaint')
|
270
|
+
|
271
|
+
klass.define_instance_method('utime') do |method|
|
272
|
+
method.define_argument('atime')
|
273
|
+
method.define_argument('mtime')
|
274
|
+
end
|
275
|
+
|
276
|
+
klass.define_instance_method('world_readable?')
|
277
|
+
|
278
|
+
klass.define_instance_method('world_writable?')
|
279
|
+
|
280
|
+
klass.define_instance_method('writable?')
|
281
|
+
|
282
|
+
klass.define_instance_method('writable_real?')
|
283
|
+
|
284
|
+
klass.define_instance_method('zero?')
|
285
|
+
end
|
286
|
+
|
287
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'Pathname').deep_freeze
|
@@ -0,0 +1,154 @@
|
|
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('PP') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('PrettyPrint'))
|
9
|
+
|
10
|
+
klass.define_method('format') do |method|
|
11
|
+
method.define_optional_argument('output')
|
12
|
+
method.define_optional_argument('maxwidth')
|
13
|
+
method.define_optional_argument('newline')
|
14
|
+
method.define_optional_argument('genspace')
|
15
|
+
end
|
16
|
+
|
17
|
+
klass.define_method('initialize') do |method|
|
18
|
+
method.define_optional_argument('sclass')
|
19
|
+
method.define_optional_argument('name')
|
20
|
+
method.define_optional_argument('under')
|
21
|
+
end
|
22
|
+
|
23
|
+
klass.define_method('mcall') do |method|
|
24
|
+
method.define_argument('obj')
|
25
|
+
method.define_argument('mod')
|
26
|
+
method.define_argument('meth')
|
27
|
+
method.define_rest_argument('args')
|
28
|
+
method.define_block_argument('block')
|
29
|
+
end
|
30
|
+
|
31
|
+
klass.define_method('pp') do |method|
|
32
|
+
method.define_argument('obj')
|
33
|
+
method.define_optional_argument('out')
|
34
|
+
method.define_optional_argument('width')
|
35
|
+
end
|
36
|
+
|
37
|
+
klass.define_method('sharing_detection')
|
38
|
+
|
39
|
+
klass.define_method('sharing_detection=')
|
40
|
+
|
41
|
+
klass.define_method('singleline_format') do |method|
|
42
|
+
method.define_optional_argument('output')
|
43
|
+
method.define_optional_argument('maxwidth')
|
44
|
+
method.define_optional_argument('newline')
|
45
|
+
method.define_optional_argument('genspace')
|
46
|
+
end
|
47
|
+
|
48
|
+
klass.define_method('singleline_pp') do |method|
|
49
|
+
method.define_argument('obj')
|
50
|
+
method.define_optional_argument('out')
|
51
|
+
end
|
52
|
+
|
53
|
+
klass.define_instance_method('break_outmost_groups')
|
54
|
+
|
55
|
+
klass.define_instance_method('breakable') do |method|
|
56
|
+
method.define_optional_argument('sep')
|
57
|
+
method.define_optional_argument('width')
|
58
|
+
end
|
59
|
+
|
60
|
+
klass.define_instance_method('check_inspect_key') do |method|
|
61
|
+
method.define_argument('id')
|
62
|
+
end
|
63
|
+
|
64
|
+
klass.define_instance_method('comma_breakable')
|
65
|
+
|
66
|
+
klass.define_instance_method('current_group')
|
67
|
+
|
68
|
+
klass.define_instance_method('fill_breakable') do |method|
|
69
|
+
method.define_optional_argument('sep')
|
70
|
+
method.define_optional_argument('width')
|
71
|
+
end
|
72
|
+
|
73
|
+
klass.define_instance_method('first?')
|
74
|
+
|
75
|
+
klass.define_instance_method('flush')
|
76
|
+
|
77
|
+
klass.define_instance_method('genspace')
|
78
|
+
|
79
|
+
klass.define_instance_method('group') do |method|
|
80
|
+
method.define_optional_argument('indent')
|
81
|
+
method.define_optional_argument('open_obj')
|
82
|
+
method.define_optional_argument('close_obj')
|
83
|
+
method.define_optional_argument('open_width')
|
84
|
+
method.define_optional_argument('close_width')
|
85
|
+
end
|
86
|
+
|
87
|
+
klass.define_instance_method('group_queue')
|
88
|
+
|
89
|
+
klass.define_instance_method('group_sub')
|
90
|
+
|
91
|
+
klass.define_instance_method('guard_inspect_key')
|
92
|
+
|
93
|
+
klass.define_instance_method('indent')
|
94
|
+
|
95
|
+
klass.define_instance_method('initialize') do |method|
|
96
|
+
method.define_optional_argument('output')
|
97
|
+
method.define_optional_argument('maxwidth')
|
98
|
+
method.define_optional_argument('newline')
|
99
|
+
method.define_block_argument('genspace')
|
100
|
+
end
|
101
|
+
|
102
|
+
klass.define_instance_method('maxwidth')
|
103
|
+
|
104
|
+
klass.define_instance_method('nest') do |method|
|
105
|
+
method.define_argument('indent')
|
106
|
+
end
|
107
|
+
|
108
|
+
klass.define_instance_method('newline')
|
109
|
+
|
110
|
+
klass.define_instance_method('object_address_group') do |method|
|
111
|
+
method.define_argument('obj')
|
112
|
+
method.define_block_argument('block')
|
113
|
+
end
|
114
|
+
|
115
|
+
klass.define_instance_method('object_group') do |method|
|
116
|
+
method.define_argument('obj')
|
117
|
+
method.define_block_argument('block')
|
118
|
+
end
|
119
|
+
|
120
|
+
klass.define_instance_method('output')
|
121
|
+
|
122
|
+
klass.define_instance_method('pop_inspect_key') do |method|
|
123
|
+
method.define_argument('id')
|
124
|
+
end
|
125
|
+
|
126
|
+
klass.define_instance_method('pp') do |method|
|
127
|
+
method.define_argument('obj')
|
128
|
+
end
|
129
|
+
|
130
|
+
klass.define_instance_method('pp_hash') do |method|
|
131
|
+
method.define_argument('obj')
|
132
|
+
end
|
133
|
+
|
134
|
+
klass.define_instance_method('pp_object') do |method|
|
135
|
+
method.define_argument('obj')
|
136
|
+
end
|
137
|
+
|
138
|
+
klass.define_instance_method('push_inspect_key') do |method|
|
139
|
+
method.define_argument('id')
|
140
|
+
end
|
141
|
+
|
142
|
+
klass.define_instance_method('seplist') do |method|
|
143
|
+
method.define_argument('list')
|
144
|
+
method.define_optional_argument('sep')
|
145
|
+
method.define_optional_argument('iter_method')
|
146
|
+
end
|
147
|
+
|
148
|
+
klass.define_instance_method('text') do |method|
|
149
|
+
method.define_argument('obj')
|
150
|
+
method.define_optional_argument('width')
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'PP').deep_freeze
|
@@ -0,0 +1,87 @@
|
|
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('PrettyPrint') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('format') do |method|
|
11
|
+
method.define_optional_argument('output')
|
12
|
+
method.define_optional_argument('maxwidth')
|
13
|
+
method.define_optional_argument('newline')
|
14
|
+
method.define_optional_argument('genspace')
|
15
|
+
end
|
16
|
+
|
17
|
+
klass.define_method('initialize') do |method|
|
18
|
+
method.define_optional_argument('sclass')
|
19
|
+
method.define_optional_argument('name')
|
20
|
+
method.define_optional_argument('under')
|
21
|
+
end
|
22
|
+
|
23
|
+
klass.define_method('singleline_format') do |method|
|
24
|
+
method.define_optional_argument('output')
|
25
|
+
method.define_optional_argument('maxwidth')
|
26
|
+
method.define_optional_argument('newline')
|
27
|
+
method.define_optional_argument('genspace')
|
28
|
+
end
|
29
|
+
|
30
|
+
klass.define_instance_method('break_outmost_groups')
|
31
|
+
|
32
|
+
klass.define_instance_method('breakable') do |method|
|
33
|
+
method.define_optional_argument('sep')
|
34
|
+
method.define_optional_argument('width')
|
35
|
+
end
|
36
|
+
|
37
|
+
klass.define_instance_method('current_group')
|
38
|
+
|
39
|
+
klass.define_instance_method('fill_breakable') do |method|
|
40
|
+
method.define_optional_argument('sep')
|
41
|
+
method.define_optional_argument('width')
|
42
|
+
end
|
43
|
+
|
44
|
+
klass.define_instance_method('first?')
|
45
|
+
|
46
|
+
klass.define_instance_method('flush')
|
47
|
+
|
48
|
+
klass.define_instance_method('genspace')
|
49
|
+
|
50
|
+
klass.define_instance_method('group') do |method|
|
51
|
+
method.define_optional_argument('indent')
|
52
|
+
method.define_optional_argument('open_obj')
|
53
|
+
method.define_optional_argument('close_obj')
|
54
|
+
method.define_optional_argument('open_width')
|
55
|
+
method.define_optional_argument('close_width')
|
56
|
+
end
|
57
|
+
|
58
|
+
klass.define_instance_method('group_queue')
|
59
|
+
|
60
|
+
klass.define_instance_method('group_sub')
|
61
|
+
|
62
|
+
klass.define_instance_method('indent')
|
63
|
+
|
64
|
+
klass.define_instance_method('initialize') do |method|
|
65
|
+
method.define_optional_argument('output')
|
66
|
+
method.define_optional_argument('maxwidth')
|
67
|
+
method.define_optional_argument('newline')
|
68
|
+
method.define_block_argument('genspace')
|
69
|
+
end
|
70
|
+
|
71
|
+
klass.define_instance_method('maxwidth')
|
72
|
+
|
73
|
+
klass.define_instance_method('nest') do |method|
|
74
|
+
method.define_argument('indent')
|
75
|
+
end
|
76
|
+
|
77
|
+
klass.define_instance_method('newline')
|
78
|
+
|
79
|
+
klass.define_instance_method('output')
|
80
|
+
|
81
|
+
klass.define_instance_method('text') do |method|
|
82
|
+
method.define_argument('obj')
|
83
|
+
method.define_optional_argument('width')
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'PrettyPrint').deep_freeze
|