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,139 @@
|
|
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('Psych') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('add_builtin_type') do |method|
|
11
|
+
method.define_argument('type_tag')
|
12
|
+
method.define_block_argument('block')
|
13
|
+
end
|
14
|
+
|
15
|
+
klass.define_method('add_domain_type') do |method|
|
16
|
+
method.define_argument('domain')
|
17
|
+
method.define_argument('type_tag')
|
18
|
+
method.define_block_argument('block')
|
19
|
+
end
|
20
|
+
|
21
|
+
klass.define_method('add_private_type') do |method|
|
22
|
+
method.define_argument('type_tag')
|
23
|
+
method.define_block_argument('block')
|
24
|
+
end
|
25
|
+
|
26
|
+
klass.define_method('add_ruby_type') do |method|
|
27
|
+
method.define_argument('type_tag')
|
28
|
+
method.define_block_argument('block')
|
29
|
+
end
|
30
|
+
|
31
|
+
klass.define_method('add_tag') do |method|
|
32
|
+
method.define_argument('tag')
|
33
|
+
method.define_argument('klass')
|
34
|
+
end
|
35
|
+
|
36
|
+
klass.define_method('detect_implicit') do |method|
|
37
|
+
method.define_argument('thing')
|
38
|
+
end
|
39
|
+
|
40
|
+
klass.define_method('domain_types')
|
41
|
+
|
42
|
+
klass.define_method('domain_types=')
|
43
|
+
|
44
|
+
klass.define_method('dump') do |method|
|
45
|
+
method.define_argument('o')
|
46
|
+
method.define_optional_argument('io')
|
47
|
+
method.define_optional_argument('options')
|
48
|
+
end
|
49
|
+
|
50
|
+
klass.define_method('dump_stream') do |method|
|
51
|
+
method.define_rest_argument('objects')
|
52
|
+
end
|
53
|
+
|
54
|
+
klass.define_method('dump_tags')
|
55
|
+
|
56
|
+
klass.define_method('dump_tags=')
|
57
|
+
|
58
|
+
klass.define_method('initialize')
|
59
|
+
|
60
|
+
klass.define_method('libyaml_version')
|
61
|
+
|
62
|
+
klass.define_method('load') do |method|
|
63
|
+
method.define_argument('yaml')
|
64
|
+
method.define_optional_argument('filename')
|
65
|
+
end
|
66
|
+
|
67
|
+
klass.define_method('load_documents') do |method|
|
68
|
+
method.define_argument('yaml')
|
69
|
+
method.define_block_argument('block')
|
70
|
+
end
|
71
|
+
|
72
|
+
klass.define_method('load_file') do |method|
|
73
|
+
method.define_argument('filename')
|
74
|
+
end
|
75
|
+
|
76
|
+
klass.define_method('load_stream') do |method|
|
77
|
+
method.define_argument('yaml')
|
78
|
+
method.define_optional_argument('filename')
|
79
|
+
end
|
80
|
+
|
81
|
+
klass.define_method('load_tags')
|
82
|
+
|
83
|
+
klass.define_method('load_tags=')
|
84
|
+
|
85
|
+
klass.define_method('object_maker') do |method|
|
86
|
+
method.define_argument('klass')
|
87
|
+
method.define_argument('hash')
|
88
|
+
end
|
89
|
+
|
90
|
+
klass.define_method('parse') do |method|
|
91
|
+
method.define_argument('yaml')
|
92
|
+
method.define_optional_argument('filename')
|
93
|
+
end
|
94
|
+
|
95
|
+
klass.define_method('parse_file') do |method|
|
96
|
+
method.define_argument('filename')
|
97
|
+
end
|
98
|
+
|
99
|
+
klass.define_method('parse_stream') do |method|
|
100
|
+
method.define_argument('yaml')
|
101
|
+
method.define_optional_argument('filename')
|
102
|
+
method.define_block_argument('block')
|
103
|
+
end
|
104
|
+
|
105
|
+
klass.define_method('parser')
|
106
|
+
|
107
|
+
klass.define_method('quick_emit') do |method|
|
108
|
+
method.define_argument('thing')
|
109
|
+
method.define_optional_argument('opts')
|
110
|
+
method.define_block_argument('block')
|
111
|
+
end
|
112
|
+
|
113
|
+
klass.define_method('read_type_class') do |method|
|
114
|
+
method.define_argument('type')
|
115
|
+
method.define_argument('reference')
|
116
|
+
end
|
117
|
+
|
118
|
+
klass.define_method('remove_type') do |method|
|
119
|
+
method.define_argument('type_tag')
|
120
|
+
end
|
121
|
+
|
122
|
+
klass.define_method('safe_load') do |method|
|
123
|
+
method.define_argument('yaml')
|
124
|
+
method.define_optional_argument('whitelist_classes')
|
125
|
+
method.define_optional_argument('whitelist_symbols')
|
126
|
+
method.define_optional_argument('aliases')
|
127
|
+
method.define_optional_argument('filename')
|
128
|
+
end
|
129
|
+
|
130
|
+
klass.define_method('tagurize') do |method|
|
131
|
+
method.define_argument('thing')
|
132
|
+
end
|
133
|
+
|
134
|
+
klass.define_method('to_json') do |method|
|
135
|
+
method.define_argument('object')
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'Psych').deep_freeze
|
@@ -0,0 +1,15 @@
|
|
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('RDoc') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('initialize')
|
11
|
+
|
12
|
+
klass.define_method('load_yaml')
|
13
|
+
end
|
14
|
+
|
15
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'RDoc').deep_freeze
|
@@ -0,0 +1,79 @@
|
|
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('Readline') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('basic_quote_characters')
|
11
|
+
|
12
|
+
klass.define_method('basic_quote_characters=')
|
13
|
+
|
14
|
+
klass.define_method('basic_word_break_characters')
|
15
|
+
|
16
|
+
klass.define_method('basic_word_break_characters=')
|
17
|
+
|
18
|
+
klass.define_method('completer_quote_characters')
|
19
|
+
|
20
|
+
klass.define_method('completer_quote_characters=')
|
21
|
+
|
22
|
+
klass.define_method('completer_word_break_characters')
|
23
|
+
|
24
|
+
klass.define_method('completer_word_break_characters=')
|
25
|
+
|
26
|
+
klass.define_method('completion_append_character')
|
27
|
+
|
28
|
+
klass.define_method('completion_append_character=')
|
29
|
+
|
30
|
+
klass.define_method('completion_case_fold')
|
31
|
+
|
32
|
+
klass.define_method('completion_case_fold=')
|
33
|
+
|
34
|
+
klass.define_method('completion_proc')
|
35
|
+
|
36
|
+
klass.define_method('completion_proc=')
|
37
|
+
|
38
|
+
klass.define_method('emacs_editing_mode')
|
39
|
+
|
40
|
+
klass.define_method('emacs_editing_mode?')
|
41
|
+
|
42
|
+
klass.define_method('filename_quote_characters')
|
43
|
+
|
44
|
+
klass.define_method('filename_quote_characters=')
|
45
|
+
|
46
|
+
klass.define_method('get_screen_size')
|
47
|
+
|
48
|
+
klass.define_method('initialize')
|
49
|
+
|
50
|
+
klass.define_method('input=')
|
51
|
+
|
52
|
+
klass.define_method('line_buffer')
|
53
|
+
|
54
|
+
klass.define_method('output=')
|
55
|
+
|
56
|
+
klass.define_method('perform_readline')
|
57
|
+
|
58
|
+
klass.define_method('point')
|
59
|
+
|
60
|
+
klass.define_method('readline') do |method|
|
61
|
+
method.define_optional_argument('prompt')
|
62
|
+
method.define_optional_argument('add_hist')
|
63
|
+
end
|
64
|
+
|
65
|
+
klass.define_method('refresh_line')
|
66
|
+
|
67
|
+
klass.define_method('set_screen_size')
|
68
|
+
|
69
|
+
klass.define_method('vi_editing_mode')
|
70
|
+
|
71
|
+
klass.define_method('vi_editing_mode?')
|
72
|
+
|
73
|
+
klass.define_instance_method('readline') do |method|
|
74
|
+
method.define_optional_argument('prompt')
|
75
|
+
method.define_optional_argument('add_hist')
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'Readline').deep_freeze
|
@@ -0,0 +1,71 @@
|
|
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('Resolv') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('each_address') do |method|
|
11
|
+
method.define_argument('name')
|
12
|
+
method.define_block_argument('block')
|
13
|
+
end
|
14
|
+
|
15
|
+
klass.define_method('each_name') do |method|
|
16
|
+
method.define_argument('address')
|
17
|
+
method.define_block_argument('proc')
|
18
|
+
end
|
19
|
+
|
20
|
+
klass.define_method('getaddress') do |method|
|
21
|
+
method.define_argument('name')
|
22
|
+
end
|
23
|
+
|
24
|
+
klass.define_method('getaddresses') do |method|
|
25
|
+
method.define_argument('name')
|
26
|
+
end
|
27
|
+
|
28
|
+
klass.define_method('getname') do |method|
|
29
|
+
method.define_argument('address')
|
30
|
+
end
|
31
|
+
|
32
|
+
klass.define_method('getnames') do |method|
|
33
|
+
method.define_argument('address')
|
34
|
+
end
|
35
|
+
|
36
|
+
klass.define_method('initialize') do |method|
|
37
|
+
method.define_optional_argument('sclass')
|
38
|
+
method.define_optional_argument('name')
|
39
|
+
method.define_optional_argument('under')
|
40
|
+
end
|
41
|
+
|
42
|
+
klass.define_instance_method('each_address') do |method|
|
43
|
+
method.define_argument('name')
|
44
|
+
end
|
45
|
+
|
46
|
+
klass.define_instance_method('each_name') do |method|
|
47
|
+
method.define_argument('address')
|
48
|
+
end
|
49
|
+
|
50
|
+
klass.define_instance_method('getaddress') do |method|
|
51
|
+
method.define_argument('name')
|
52
|
+
end
|
53
|
+
|
54
|
+
klass.define_instance_method('getaddresses') do |method|
|
55
|
+
method.define_argument('name')
|
56
|
+
end
|
57
|
+
|
58
|
+
klass.define_instance_method('getname') do |method|
|
59
|
+
method.define_argument('address')
|
60
|
+
end
|
61
|
+
|
62
|
+
klass.define_instance_method('getnames') do |method|
|
63
|
+
method.define_argument('address')
|
64
|
+
end
|
65
|
+
|
66
|
+
klass.define_instance_method('initialize') do |method|
|
67
|
+
method.define_optional_argument('resolvers')
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'Resolv').deep_freeze
|
@@ -0,0 +1,13 @@
|
|
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('REXML') do |klass|
|
8
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
9
|
+
|
10
|
+
klass.define_method('initialize')
|
11
|
+
end
|
12
|
+
|
13
|
+
RubyLint::GlobalScope.definitions.lookup(:const, 'REXML').deep_freeze
|
@@ -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('RPATHFLAG') 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, 'RPATHFLAG').deep_freeze
|