ruby-lint 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -5
- data/Gemfile +9 -4
- data/MANIFEST +32 -28
- data/README.md +18 -5
- data/Rakefile +7 -3
- data/checksum/ruby-lint-1.0.2.gem.sha512 +1 -0
- data/checksum/ruby-lint-1.0.3.gem.sha512 +1 -0
- data/doc/changelog.md +40 -0
- data/doc/definitions.md +182 -0
- data/gen/rails/constants.txt +12 -0
- data/gen/rails/requires.rb +2 -0
- data/gen/stdlib/constants.rb +30 -0
- data/gen/stdlib/constants.txt +214 -0
- data/gen/stdlib/requires.rb +64 -0
- data/lib/ruby-lint.rb +7 -14
- data/lib/ruby-lint/analysis/undefined_methods.rb +8 -1
- data/lib/ruby-lint/analysis/useless_equality_checks.rb +92 -0
- data/lib/ruby-lint/cli.rb +1 -2
- data/lib/ruby-lint/cli/analyze.rb +55 -26
- data/lib/ruby-lint/cli/cache.rb +60 -0
- data/lib/ruby-lint/configuration.rb +10 -4
- data/lib/ruby-lint/constant_loader.rb +75 -22
- data/lib/ruby-lint/definition/constant_proxy.rb +51 -3
- data/lib/ruby-lint/definition/registry.rb +126 -0
- data/lib/ruby-lint/definition/ruby_method.rb +0 -11
- data/lib/ruby-lint/definition/ruby_object.rb +32 -24
- data/lib/ruby-lint/definition_builder/base.rb +9 -12
- data/lib/ruby-lint/definition_builder/primitive.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_array.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_block.rb +3 -3
- data/lib/ruby-lint/definition_builder/ruby_class.rb +2 -2
- data/lib/ruby-lint/definition_builder/ruby_hash.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_method.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_module.rb +4 -4
- data/lib/ruby-lint/definition_generator.rb +12 -2
- data/lib/ruby-lint/definitions/core/abbrev.rb +8 -11
- data/lib/ruby-lint/definitions/core/argf.rb +9 -7
- data/lib/ruby-lint/definitions/core/argument_error.rb +8 -10
- data/lib/ruby-lint/definitions/core/argv.rb +9 -9
- data/lib/ruby-lint/definitions/core/array.rb +296 -534
- data/lib/ruby-lint/definitions/core/base64.rb +22 -25
- data/lib/ruby-lint/definitions/core/basic_object.rb +30 -30
- data/lib/ruby-lint/definitions/core/basic_socket.rb +341 -455
- data/lib/ruby-lint/definitions/core/benchmark.rb +157 -24
- data/lib/ruby-lint/definitions/core/bignum.rb +110 -95
- data/lib/ruby-lint/definitions/core/binding.rb +38 -35
- data/lib/ruby-lint/definitions/core/cgi.rb +333 -49
- data/lib/ruby-lint/definitions/core/class.rb +16 -16
- data/lib/ruby-lint/definitions/core/common_headers.rb +4 -548
- data/lib/ruby-lint/definitions/core/common_libs.rb +4 -421
- data/lib/ruby-lint/definitions/core/comparable.rb +28 -29
- data/lib/ruby-lint/definitions/core/complex.rb +103 -141
- data/lib/ruby-lint/definitions/core/condition_variable.rb +14 -14
- data/lib/ruby-lint/definitions/core/config.rb +4 -318
- data/lib/ruby-lint/definitions/core/conftest_c.rb +4 -548
- data/lib/ruby-lint/definitions/core/coutflag.rb +4 -548
- data/lib/ruby-lint/definitions/core/csv.rb +729 -329
- data/lib/ruby-lint/definitions/core/data.rb +9 -8
- data/lib/ruby-lint/definitions/core/date.rb +452 -526
- data/lib/ruby-lint/definitions/core/date_time.rb +234 -303
- data/lib/ruby-lint/definitions/core/delegator.rb +57 -48
- data/lib/ruby-lint/definitions/core/digest.rb +94 -115
- data/lib/ruby-lint/definitions/core/dir.rb +89 -459
- data/lib/ruby-lint/definitions/core/drb.rb +531 -36
- data/lib/ruby-lint/definitions/core/drb_id_conv.rb +10 -19
- data/lib/ruby-lint/definitions/core/drb_object.rb +53 -58
- data/lib/ruby-lint/definitions/core/drb_undumped.rb +7 -10
- data/lib/ruby-lint/definitions/core/encoding.rb +1026 -1718
- data/lib/ruby-lint/definitions/core/encoding_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/enumerable.rb +123 -292
- data/lib/ruby-lint/definitions/core/enumerator.rb +28 -26
- data/lib/ruby-lint/definitions/core/env.rb +8 -9
- data/lib/ruby-lint/definitions/core/eoferror.rb +9 -8
- data/lib/ruby-lint/definitions/core/erb.rb +201 -226
- data/lib/ruby-lint/definitions/core/errno.rb +1593 -2917
- data/lib/ruby-lint/definitions/core/etc.rb +86 -107
- data/lib/ruby-lint/definitions/core/exception.rb +70 -50
- data/lib/ruby-lint/definitions/core/exception_for_matrix.rb +24 -37
- data/lib/ruby-lint/definitions/core/export_prefix.rb +4 -16
- data/lib/ruby-lint/definitions/core/failed_message.rb +4 -548
- data/lib/ruby-lint/definitions/core/false.rb +9 -7
- data/lib/ruby-lint/definitions/core/false_class.rb +40 -22
- data/lib/ruby-lint/definitions/core/fcntl.rb +120 -7
- data/lib/ruby-lint/definitions/core/fiber.rb +25 -26
- data/lib/ruby-lint/definitions/core/fiber_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/file.rb +1119 -860
- data/lib/ruby-lint/definitions/core/file_test.rb +79 -80
- data/lib/ruby-lint/definitions/core/file_utils.rb +1203 -765
- data/lib/ruby-lint/definitions/core/find.rb +9 -12
- data/lib/ruby-lint/definitions/core/fixnum.rb +113 -663
- data/lib/ruby-lint/definitions/core/float.rb +171 -2755
- data/lib/ruby-lint/definitions/core/float_domain_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/forwardable.rb +37 -30
- data/lib/ruby-lint/definitions/core/gc.rb +31 -38
- data/lib/ruby-lint/definitions/core/gem.rb +2324 -2183
- data/lib/ruby-lint/definitions/core/getopt_long.rb +107 -32
- data/lib/ruby-lint/definitions/core/gserver.rb +61 -61
- data/lib/ruby-lint/definitions/core/hash.rb +354 -1172
- data/lib/ruby-lint/definitions/core/hdr_ext.rb +4 -421
- data/lib/ruby-lint/definitions/core/index_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/install_dirs.rb +4 -421
- data/lib/ruby-lint/definitions/core/integer.rb +93 -67
- data/lib/ruby-lint/definitions/core/interrupt.rb +11 -11
- data/lib/ruby-lint/definitions/core/io.rb +574 -673
- data/lib/ruby-lint/definitions/core/ioerror.rb +9 -8
- data/lib/ruby-lint/definitions/core/ipaddr.rb +115 -90
- data/lib/ruby-lint/definitions/core/ipsocket.rb +301 -472
- data/lib/ruby-lint/definitions/core/irb.rb +1206 -34
- data/lib/ruby-lint/definitions/core/json.rb +483 -74
- data/lib/ruby-lint/definitions/core/kconv.rb +88 -36
- data/lib/ruby-lint/definitions/core/kernel.rb +408 -412
- data/lib/ruby-lint/definitions/core/key_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/libarg.rb +4 -548
- data/lib/ruby-lint/definitions/core/libpathflag.rb +4 -548
- data/lib/ruby-lint/definitions/core/link_so.rb +4 -548
- data/lib/ruby-lint/definitions/core/load_error.rb +24 -25
- data/lib/ruby-lint/definitions/core/local_jump_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/logger.rb +294 -61
- data/lib/ruby-lint/definitions/core/logging.rb +17 -20
- data/lib/ruby-lint/definitions/core/make_makefile.rb +548 -384
- data/lib/ruby-lint/definitions/core/marshal.rb +260 -358
- data/lib/ruby-lint/definitions/core/match_data.rb +51 -48
- data/lib/ruby-lint/definitions/core/math.rb +170 -178
- data/lib/ruby-lint/definitions/core/matrix.rb +354 -297
- data/lib/ruby-lint/definitions/core/method.rb +41 -42
- data/lib/ruby-lint/definitions/core/module.rb +219 -223
- data/lib/ruby-lint/definitions/core/monitor.rb +26 -28
- data/lib/ruby-lint/definitions/core/monitor_mixin.rb +36 -42
- data/lib/ruby-lint/definitions/core/mutex.rb +20 -22
- data/lib/ruby-lint/definitions/core/mutex_m.rb +24 -27
- data/lib/ruby-lint/definitions/core/name_error.rb +13 -13
- data/lib/ruby-lint/definitions/core/nil.rb +9 -7
- data/lib/ruby-lint/definitions/core/nil_class.rb +47 -31
- data/lib/ruby-lint/definitions/core/nkf.rb +76 -9
- data/lib/ruby-lint/definitions/core/no_memory_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/no_method_error.rb +14 -14
- data/lib/ruby-lint/definitions/core/not_implemented_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/numeric.rb +88 -80
- data/lib/ruby-lint/definitions/core/object.rb +20 -20
- data/lib/ruby-lint/definitions/core/object_space.rb +28 -31
- data/lib/ruby-lint/definitions/core/observable.rb +20 -23
- data/lib/ruby-lint/definitions/core/open3.rb +47 -50
- data/lib/ruby-lint/definitions/core/open_ssl.rb +4158 -13
- data/lib/ruby-lint/definitions/core/open_struct.rb +40 -37
- data/lib/ruby-lint/definitions/core/open_uri.rb +142 -25
- data/lib/ruby-lint/definitions/core/option_parser.rb +919 -981
- data/lib/ruby-lint/definitions/core/orig_libpath.rb +4 -32
- data/lib/ruby-lint/definitions/core/outflag.rb +4 -548
- data/lib/ruby-lint/definitions/core/pathname.rb +211 -186
- data/lib/ruby-lint/definitions/core/pp.rb +160 -99
- data/lib/ruby-lint/definitions/core/pretty_print.rb +170 -56
- data/lib/ruby-lint/definitions/core/prime.rb +329 -234
- data/lib/ruby-lint/definitions/core/proc.rb +63 -75
- data/lib/ruby-lint/definitions/core/process.rb +504 -412
- data/lib/ruby-lint/definitions/core/profiler__.rb +13 -16
- data/lib/ruby-lint/definitions/core/pstore.rb +66 -36
- data/lib/ruby-lint/definitions/core/queue.rb +32 -32
- data/lib/ruby-lint/definitions/core/random.rb +29 -29
- data/lib/ruby-lint/definitions/core/range.rb +123 -77
- data/lib/ruby-lint/definitions/core/range_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/rational.rb +84 -67
- data/lib/ruby-lint/definitions/core/rb_config.rb +18 -29
- data/lib/ruby-lint/definitions/core/readline.rb +85 -41
- data/lib/ruby-lint/definitions/core/regexp.rb +239 -293
- data/lib/ruby-lint/definitions/core/regexp_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/resolv.rb +1365 -38
- data/lib/ruby-lint/definitions/core/rpathflag.rb +4 -548
- data/lib/ruby-lint/definitions/core/ruby_copyright.rb +9 -9
- data/lib/ruby-lint/definitions/core/ruby_description.rb +9 -9
- data/lib/ruby-lint/definitions/core/ruby_engine.rb +9 -9
- data/lib/ruby-lint/definitions/core/ruby_patchlevel.rb +9 -9
- data/lib/ruby-lint/definitions/core/ruby_platform.rb +9 -9
- data/lib/ruby-lint/definitions/core/ruby_release_date.rb +9 -9
- data/lib/ruby-lint/definitions/core/ruby_revision.rb +4 -246
- data/lib/ruby-lint/definitions/core/ruby_version.rb +9 -9
- data/lib/ruby-lint/definitions/core/runtime_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/scan_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/scanf.rb +83 -7
- data/lib/ruby-lint/definitions/core/script_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/secure_random.rb +22 -25
- data/lib/ruby-lint/definitions/core/security_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/set.rb +154 -504
- data/lib/ruby-lint/definitions/core/shellwords.rb +27 -28
- data/lib/ruby-lint/definitions/core/signal.rb +21 -29
- data/lib/ruby-lint/definitions/core/signal_exception.rb +15 -15
- data/lib/ruby-lint/definitions/core/simple_delegator.rb +10 -26
- data/lib/ruby-lint/definitions/core/single_forwardable.rb +35 -38
- data/lib/ruby-lint/definitions/core/singleton.rb +21 -28
- data/lib/ruby-lint/definitions/core/sized_queue.rb +35 -31
- data/lib/ruby-lint/definitions/core/socket.rb +2942 -438
- data/lib/ruby-lint/definitions/core/socket_error.rb +4 -54
- data/lib/ruby-lint/definitions/core/sorted_set.rb +49 -263
- data/lib/ruby-lint/definitions/core/src_ext.rb +4 -421
- data/lib/ruby-lint/definitions/core/standard_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/stderr.rb +9 -9
- data/lib/ruby-lint/definitions/core/stdin.rb +9 -9
- data/lib/ruby-lint/definitions/core/stdout.rb +9 -9
- data/lib/ruby-lint/definitions/core/stop_iteration.rb +10 -8
- data/lib/ruby-lint/definitions/core/string.rb +451 -1222
- data/lib/ruby-lint/definitions/core/string_io.rb +226 -518
- data/lib/ruby-lint/definitions/core/string_scanner.rb +107 -108
- data/lib/ruby-lint/definitions/core/struct.rb +113 -761
- data/lib/ruby-lint/definitions/core/syck.rb +1292 -25
- data/lib/ruby-lint/definitions/core/symbol.rb +78 -59
- data/lib/ruby-lint/definitions/core/syntax_error.rb +23 -33
- data/lib/ruby-lint/definitions/core/system_call_error.rb +26 -24
- data/lib/ruby-lint/definitions/core/system_exit.rb +15 -15
- data/lib/ruby-lint/definitions/core/system_stack_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/tcpserver.rb +291 -486
- data/lib/ruby-lint/definitions/core/tcpsocket.rb +302 -483
- data/lib/ruby-lint/definitions/core/tempfile.rb +39 -832
- data/lib/ruby-lint/definitions/core/th_wait.rb +35 -70
- data/lib/ruby-lint/definitions/core/thread.rb +131 -144
- data/lib/ruby-lint/definitions/core/thread_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/thread_group.rb +23 -16
- data/lib/ruby-lint/definitions/core/threads_wait.rb +43 -63
- data/lib/ruby-lint/definitions/core/time.rb +236 -159
- data/lib/ruby-lint/definitions/core/timeout.rb +40 -14
- data/lib/ruby-lint/definitions/core/timeout_error.rb +4 -54
- data/lib/ruby-lint/definitions/core/toplevel_binding.rb +9 -7
- data/lib/ruby-lint/definitions/core/true.rb +9 -7
- data/lib/ruby-lint/definitions/core/true_class.rb +40 -22
- data/lib/ruby-lint/definitions/core/try_link.rb +4 -548
- data/lib/ruby-lint/definitions/core/tsort.rb +21 -19
- data/lib/ruby-lint/definitions/core/type_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/udpsocket.rb +302 -487
- data/lib/ruby-lint/definitions/core/unbound_method.rb +35 -36
- data/lib/ruby-lint/definitions/core/universal_ints.rb +4 -421
- data/lib/ruby-lint/definitions/core/unixserver.rb +291 -490
- data/lib/ruby-lint/definitions/core/unixsocket.rb +314 -476
- data/lib/ruby-lint/definitions/core/uri.rb +1309 -38
- data/lib/ruby-lint/definitions/core/vector.rb +143 -242
- data/lib/ruby-lint/definitions/core/weak_ref.rb +29 -32
- data/lib/ruby-lint/definitions/core/webrick.rb +2430 -7
- data/lib/ruby-lint/definitions/core/xmlrpc.rb +5 -7
- data/lib/ruby-lint/definitions/core/yaml.rb +109 -2325
- data/lib/ruby-lint/definitions/core/zero_division_error.rb +9 -8
- data/lib/ruby-lint/definitions/core/zlib.rb +272 -8526
- data/lib/ruby-lint/definitions/gems/.gitkeep +0 -0
- data/lib/ruby-lint/definitions/gems/devise.rb +2271 -0
- data/lib/ruby-lint/definitions/gems/nokogiri.rb +7668 -0
- data/lib/ruby-lint/definitions/rails/abstract_controller.rb +508 -322
- data/lib/ruby-lint/definitions/rails/action_controller.rb +2252 -4462
- data/lib/ruby-lint/definitions/rails/action_dispatch.rb +3448 -1846
- data/lib/ruby-lint/definitions/rails/action_mailer.rb +750 -1349
- data/lib/ruby-lint/definitions/rails/action_pack.rb +31 -14
- data/lib/ruby-lint/definitions/rails/action_view.rb +5788 -5748
- data/lib/ruby-lint/definitions/rails/active_model.rb +1015 -1065
- data/lib/ruby-lint/definitions/rails/active_record.rb +8080 -8075
- data/lib/ruby-lint/definitions/rails/active_support.rb +3844 -4153
- data/lib/ruby-lint/definitions/rails/arel.rb +6752 -2301
- data/lib/ruby-lint/definitions/rails/rails.rb +1553 -2383
- data/lib/ruby-lint/definitions/rails/sprockets.rb +1131 -3140
- data/lib/ruby-lint/file_list.rb +43 -0
- data/lib/ruby-lint/file_scanner.rb +3 -3
- data/lib/ruby-lint/generated_constant.rb +5 -1
- data/lib/ruby-lint/inspector.rb +108 -46
- data/lib/ruby-lint/method_call/attribute.rb +3 -1
- data/lib/ruby-lint/rake_task.rb +98 -0
- data/lib/ruby-lint/ruby_lint.rb +11 -0
- data/lib/ruby-lint/runner.rb +0 -11
- data/lib/ruby-lint/template/definition.erb +26 -19
- data/lib/ruby-lint/template/scope.rb +12 -0
- data/lib/ruby-lint/variable_predicates.rb +14 -0
- data/lib/ruby-lint/version.rb +1 -1
- data/lib/ruby-lint/virtual_machine.rb +82 -46
- data/ruby-lint.gemspec +3 -14
- data/spec/ruby-lint/analysis/undefined_methods_spec.rb +20 -3
- data/spec/ruby-lint/analysis/useless_equality_checks_spec.rb +107 -0
- data/spec/ruby-lint/configuration_spec.rb +20 -0
- data/spec/ruby-lint/constant_loader_spec.rb +79 -0
- data/spec/ruby-lint/definition/constant_proxy_spec.rb +65 -34
- data/spec/ruby-lint/definition/registry_spec.rb +106 -0
- data/spec/ruby-lint/definition/ruby_object_spec.rb +25 -25
- data/spec/ruby-lint/definition_builder/primitive_spec.rb +10 -10
- data/spec/ruby-lint/definition_builder/ruby_class_spec.rb +18 -19
- data/spec/ruby-lint/definition_builder/ruby_method_spec.rb +12 -12
- data/spec/ruby-lint/definition_builder/ruby_module_spec.rb +14 -14
- data/spec/ruby-lint/definitions/argv_spec.rb +3 -2
- data/spec/ruby-lint/definitions/env_spec.rb +5 -3
- data/spec/ruby-lint/definitions/file_spec.rb +17 -0
- data/spec/ruby-lint/definitions/fixnum_spec.rb +18 -0
- data/spec/ruby-lint/definitions/io_spec.rb +5 -3
- data/spec/ruby-lint/definitions/kernel_spec.rb +18 -0
- data/spec/ruby-lint/definitions/range_spec.rb +21 -0
- data/spec/ruby-lint/definitions/string_spec.rb +20 -0
- data/spec/ruby-lint/file_list_spec.rb +25 -0
- data/spec/ruby-lint/file_scanner_spec.rb +12 -0
- data/spec/ruby-lint/inspector_spec.rb +203 -23
- data/spec/ruby-lint/method_call/.gitkeep +0 -0
- data/spec/ruby-lint/variable_predicates_spec.rb +30 -0
- data/spec/ruby-lint/virtual_machine/associate_nodes_spec.rb +6 -4
- data/spec/ruby-lint/virtual_machine/autoloading_spec.rb +3 -16
- data/spec/ruby-lint/virtual_machine/classes/redefining_spec.rb +28 -1
- data/spec/ruby-lint/virtual_machine/complex/rails_spec.rb +12 -9
- data/spec/ruby-lint/virtual_machine/global_variables_spec.rb +8 -5
- data/spec/ruby-lint/virtual_machine/method_call_tracking_spec.rb +0 -7
- data/spec/ruby-lint/virtual_machine/methods/attr_spec.rb +66 -0
- data/spec/ruby-lint/virtual_machine/methods/calls_spec.rb +25 -0
- data/spec/ruby-lint/virtual_machine/methods/define_method_spec.rb +1 -1
- data/spec/ruby-lint/virtual_machine/methods/docstrings_spec.rb +20 -9
- data/spec/ruby-lint/virtual_machine/methods/kernel_spec.rb +25 -0
- data/spec/ruby-lint/virtual_machine/methods/patching_spec.rb +0 -6
- data/spec/ruby-lint/virtual_machine/methods/square_bracket_spec.rb +32 -0
- data/spec/ruby-lint/virtual_machine/self_spec.rb +37 -0
- data/spec/spec_helper.rb +0 -1
- data/spec/support/building.rb +0 -4
- data/spec/support/definitions.rb +16 -0
- data/task/generate.rake +35 -33
- data/task/todo.rake +1 -1
- metadata +73 -100
- data/lib/ruby-lint/cli/ast.rb +0 -50
- data/lib/ruby-lint/cli/plot.rb +0 -94
- data/lib/ruby-lint/definitions/core/arg0.rb +0 -9
- data/lib/ruby-lint/definitions/core/autoload.rb +0 -41
- data/lib/ruby-lint/definitions/core/continuation.rb +0 -10
- data/lib/ruby-lint/definitions/core/default_record_separator.rb +0 -9
- data/lib/ruby-lint/definitions/core/fatal_error.rb +0 -10
- data/lib/ruby-lint/definitions/core/file_list.rb +0 -729
- data/lib/ruby-lint/definitions/core/immediate_value.rb +0 -21
- data/lib/ruby-lint/definitions/core/md5.rb +0 -80
- data/lib/ruby-lint/definitions/core/memory_segmention_error.rb +0 -10
- data/lib/ruby-lint/definitions/core/precision.rb +0 -23
- data/lib/ruby-lint/definitions/core/primitive_failure.rb +0 -10
- data/lib/ruby-lint/definitions/core/psych.rb +0 -139
- data/lib/ruby-lint/definitions/core/rake.rb +0 -4786
- data/lib/ruby-lint/definitions/core/rake_file_utils.rb +0 -205
- data/lib/ruby-lint/definitions/core/rakeversion.rb +0 -9
- data/lib/ruby-lint/definitions/core/rdoc.rb +0 -15
- data/lib/ruby-lint/definitions/core/rexml.rb +0 -13
- data/lib/ruby-lint/definitions/core/rss.rb +0 -13
- data/lib/ruby-lint/definitions/core/sha1.rb +0 -80
- data/lib/ruby-lint/definitions/core/unmarshalable.rb +0 -15
- data/lib/ruby-lint/definitions/core/unsupported_library_error.rb +0 -10
- data/lib/ruby-lint/definitions/global_variables.rb +0 -9
- data/lib/ruby-lint/definitions/rails.rb +0 -12
- data/lib/ruby-lint/global_scope.rb +0 -56
- data/spec/ruby-lint/cli/ast_spec.rb +0 -23
- data/spec/ruby-lint/method_call/assign_member_spec.rb +0 -25
@@ -1,10 +1,11 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Created: 2013-04-01 18:33:54 +0200
|
4
|
-
# Platform: rbx 2.0.0.rc1
|
1
|
+
# This file was automatically generated, any manual changes will be lost the
|
2
|
+
# next time this file is generated.
|
5
3
|
#
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
# Platform: rbx 2.2.3.n364
|
5
|
+
|
6
|
+
RubyLint.registry.register('IOError') do |defs|
|
7
|
+
defs.define_constant('IOError') do |klass|
|
8
|
+
klass.inherits(defs.constant_proxy('StandardError', RubyLint.registry))
|
9
9
|
|
10
|
-
|
10
|
+
end
|
11
|
+
end
|
@@ -1,140 +1,165 @@
|
|
1
1
|
# This file was automatically generated, any manual changes will be lost the
|
2
2
|
# next time this file is generated.
|
3
3
|
#
|
4
|
-
#
|
5
|
-
# Platform: rbx 2.1.1
|
4
|
+
# Platform: rbx 2.2.3.n364
|
6
5
|
|
7
|
-
RubyLint
|
8
|
-
|
6
|
+
RubyLint.registry.register('IPAddr') do |defs|
|
7
|
+
defs.define_constant('IPAddr') do |klass|
|
8
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
9
|
+
klass.inherits(defs.constant_proxy('Comparable', RubyLint.registry))
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
method.define_optional_argument('under')
|
14
|
-
end
|
11
|
+
klass.define_method('new_ntoh') do |method|
|
12
|
+
method.define_argument('addr')
|
13
|
+
end
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
klass.define_method('ntop') do |method|
|
16
|
+
method.define_argument('addr')
|
17
|
+
end
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
klass.define_instance_method('&') do |method|
|
20
|
+
method.define_argument('other')
|
21
|
+
end
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
klass.define_instance_method('<<') do |method|
|
24
|
+
method.define_argument('num')
|
25
|
+
end
|
27
26
|
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
klass.define_instance_method('<=>') do |method|
|
28
|
+
method.define_argument('other')
|
29
|
+
end
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
klass.define_instance_method('==') do |method|
|
32
|
+
method.define_argument('other')
|
33
|
+
end
|
35
34
|
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
klass.define_instance_method('===') do |method|
|
36
|
+
method.define_argument('other')
|
37
|
+
end
|
39
38
|
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
klass.define_instance_method('>>') do |method|
|
40
|
+
method.define_argument('num')
|
41
|
+
end
|
43
42
|
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
klass.define_instance_method('eql?') do |method|
|
44
|
+
method.define_argument('other')
|
45
|
+
end
|
47
46
|
|
48
|
-
|
49
|
-
method.define_argument('other')
|
50
|
-
end
|
47
|
+
klass.define_instance_method('family')
|
51
48
|
|
52
|
-
|
53
|
-
method.define_argument('other')
|
54
|
-
end
|
49
|
+
klass.define_instance_method('hash')
|
55
50
|
|
56
|
-
|
57
|
-
method.define_argument('other')
|
58
|
-
end
|
51
|
+
klass.define_instance_method('hton')
|
59
52
|
|
60
|
-
|
61
|
-
|
62
|
-
|
53
|
+
klass.define_instance_method('include?') do |method|
|
54
|
+
method.define_argument('other')
|
55
|
+
end
|
63
56
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
end
|
57
|
+
klass.define_instance_method('initialize') do |method|
|
58
|
+
method.define_optional_argument('addr')
|
59
|
+
method.define_optional_argument('family')
|
68
60
|
|
69
|
-
|
70
|
-
|
71
|
-
end
|
61
|
+
method.returns { |object| object.instance }
|
62
|
+
end
|
72
63
|
|
73
|
-
|
64
|
+
klass.define_instance_method('inspect')
|
74
65
|
|
75
|
-
|
66
|
+
klass.define_instance_method('ip6_arpa')
|
76
67
|
|
77
|
-
|
68
|
+
klass.define_instance_method('ip6_int')
|
78
69
|
|
79
|
-
|
80
|
-
method.define_argument('other')
|
81
|
-
end
|
70
|
+
klass.define_instance_method('ipv4?')
|
82
71
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
72
|
+
klass.define_instance_method('ipv4_compat')
|
73
|
+
|
74
|
+
klass.define_instance_method('ipv4_compat?')
|
75
|
+
|
76
|
+
klass.define_instance_method('ipv4_mapped')
|
77
|
+
|
78
|
+
klass.define_instance_method('ipv4_mapped?')
|
87
79
|
|
88
|
-
|
80
|
+
klass.define_instance_method('ipv6?')
|
89
81
|
|
90
|
-
|
82
|
+
klass.define_instance_method('mask') do |method|
|
83
|
+
method.define_argument('prefixlen')
|
84
|
+
end
|
91
85
|
|
92
|
-
|
86
|
+
klass.define_instance_method('mask!') do |method|
|
87
|
+
method.define_argument('mask')
|
88
|
+
end
|
93
89
|
|
94
|
-
|
90
|
+
klass.define_instance_method('native')
|
95
91
|
|
96
|
-
|
92
|
+
klass.define_instance_method('reverse')
|
97
93
|
|
98
|
-
|
94
|
+
klass.define_instance_method('set') do |method|
|
95
|
+
method.define_argument('addr')
|
96
|
+
method.define_rest_argument('family')
|
97
|
+
end
|
99
98
|
|
100
|
-
|
99
|
+
klass.define_instance_method('succ')
|
101
100
|
|
102
|
-
|
101
|
+
klass.define_instance_method('to_i')
|
103
102
|
|
104
|
-
|
103
|
+
klass.define_instance_method('to_range')
|
105
104
|
|
106
|
-
|
107
|
-
|
105
|
+
klass.define_instance_method('to_s')
|
106
|
+
|
107
|
+
klass.define_instance_method('to_string')
|
108
|
+
|
109
|
+
klass.define_instance_method('|') do |method|
|
110
|
+
method.define_argument('other')
|
111
|
+
end
|
112
|
+
|
113
|
+
klass.define_instance_method('~')
|
108
114
|
end
|
109
115
|
|
110
|
-
|
111
|
-
|
116
|
+
defs.define_constant('IPAddr::AddressFamilyError') do |klass|
|
117
|
+
klass.inherits(defs.constant_proxy('IPAddr::Error', RubyLint.registry))
|
118
|
+
|
112
119
|
end
|
113
120
|
|
114
|
-
|
121
|
+
defs.define_constant('IPAddr::Error') do |klass|
|
122
|
+
klass.inherits(defs.constant_proxy('ArgumentError', RubyLint.registry))
|
123
|
+
|
124
|
+
end
|
115
125
|
|
116
|
-
|
126
|
+
defs.define_constant('IPAddr::IN4MASK') do |klass|
|
127
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
117
128
|
|
118
|
-
klass.define_instance_method('set') do |method|
|
119
|
-
method.define_argument('addr')
|
120
|
-
method.define_rest_argument('family')
|
121
129
|
end
|
122
130
|
|
123
|
-
|
131
|
+
defs.define_constant('IPAddr::IN6FORMAT') do |klass|
|
132
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
124
133
|
|
125
|
-
|
134
|
+
end
|
126
135
|
|
127
|
-
|
136
|
+
defs.define_constant('IPAddr::IN6MASK') do |klass|
|
137
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
128
138
|
|
129
|
-
|
139
|
+
end
|
130
140
|
|
131
|
-
|
141
|
+
defs.define_constant('IPAddr::InvalidAddressError') do |klass|
|
142
|
+
klass.inherits(defs.constant_proxy('IPAddr::Error', RubyLint.registry))
|
132
143
|
|
133
|
-
klass.define_instance_method('|') do |method|
|
134
|
-
method.define_argument('other')
|
135
144
|
end
|
136
145
|
|
137
|
-
|
138
|
-
|
146
|
+
defs.define_constant('IPAddr::InvalidPrefixError') do |klass|
|
147
|
+
klass.inherits(defs.constant_proxy('IPAddr::InvalidAddressError', RubyLint.registry))
|
148
|
+
|
149
|
+
end
|
150
|
+
|
151
|
+
defs.define_constant('IPAddr::RE_IPV4ADDRLIKE') do |klass|
|
152
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
defs.define_constant('IPAddr::RE_IPV6ADDRLIKE_COMPRESSED') do |klass|
|
157
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
139
158
|
|
140
|
-
|
159
|
+
end
|
160
|
+
|
161
|
+
defs.define_constant('IPAddr::RE_IPV6ADDRLIKE_FULL') do |klass|
|
162
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
163
|
+
|
164
|
+
end
|
165
|
+
end
|
@@ -1,696 +1,525 @@
|
|
1
1
|
# This file was automatically generated, any manual changes will be lost the
|
2
2
|
# next time this file is generated.
|
3
3
|
#
|
4
|
-
#
|
5
|
-
# Platform: rbx 2.1.1
|
4
|
+
# Platform: rbx 2.2.3.n364
|
6
5
|
|
7
|
-
RubyLint
|
8
|
-
|
6
|
+
RubyLint.registry.register('IPSocket') do |defs|
|
7
|
+
defs.define_constant('IPSocket') do |klass|
|
8
|
+
klass.inherits(defs.constant_proxy('BasicSocket', RubyLint.registry))
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
10
|
+
klass.define_method('getaddress') do |method|
|
11
|
+
method.define_argument('host')
|
12
|
+
end
|
21
13
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
14
|
+
klass.define_instance_method('addr') do |method|
|
15
|
+
method.define_optional_argument('reverse_lookup')
|
16
|
+
end
|
26
17
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
method.define_optional_argument('max_length')
|
31
|
-
method.define_optional_argument('offset')
|
32
|
-
end
|
18
|
+
klass.define_instance_method('peeraddr') do |method|
|
19
|
+
method.define_optional_argument('reverse_lookup')
|
20
|
+
end
|
33
21
|
|
34
|
-
|
22
|
+
klass.define_instance_method('recvfrom') do |method|
|
23
|
+
method.define_argument('maxlen')
|
24
|
+
method.define_optional_argument('flags')
|
25
|
+
end
|
35
26
|
|
36
|
-
|
37
|
-
|
27
|
+
klass.define_instance_method('recvfrom_nonblock') do |method|
|
28
|
+
method.define_argument('maxlen')
|
29
|
+
method.define_optional_argument('flags')
|
30
|
+
end
|
38
31
|
end
|
39
32
|
|
40
|
-
|
41
|
-
|
42
|
-
method.define_argument('path')
|
43
|
-
method.define_argument('flags')
|
44
|
-
end
|
33
|
+
defs.define_constant('IPSocket::ACCMODE') do |klass|
|
34
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
45
35
|
|
46
|
-
klass.define_method('for_fd') do |method|
|
47
|
-
method.define_argument('fixnum')
|
48
36
|
end
|
49
37
|
|
50
|
-
|
51
|
-
|
52
|
-
method.define_optional_argument('separator')
|
53
|
-
method.define_optional_argument('limit')
|
54
|
-
method.define_optional_argument('options')
|
55
|
-
end
|
38
|
+
defs.define_constant('IPSocket::APPEND') do |klass|
|
39
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
56
40
|
|
57
|
-
klass.define_method('from_descriptor') do |method|
|
58
|
-
method.define_argument('fixnum')
|
59
41
|
end
|
60
42
|
|
61
|
-
|
62
|
-
|
63
|
-
end
|
43
|
+
defs.define_constant('IPSocket::BINARY') do |klass|
|
44
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
64
45
|
|
65
|
-
klass.define_method('initialize') do |method|
|
66
|
-
method.define_optional_argument('sclass')
|
67
|
-
method.define_optional_argument('name')
|
68
|
-
method.define_optional_argument('under')
|
69
46
|
end
|
70
47
|
|
71
|
-
|
48
|
+
defs.define_constant('IPSocket::BidirectionalPipe') do |klass|
|
49
|
+
klass.inherits(defs.constant_proxy('IO', RubyLint.registry))
|
72
50
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
end
|
51
|
+
klass.define_instance_method('<<') do |method|
|
52
|
+
method.define_argument('obj')
|
53
|
+
end
|
77
54
|
|
78
|
-
|
79
|
-
method.define_rest_argument('args')
|
80
|
-
end
|
55
|
+
klass.define_instance_method('close')
|
81
56
|
|
82
|
-
|
83
|
-
method.define_argument('path')
|
84
|
-
method.define_argument('mode')
|
85
|
-
method.define_argument('perm')
|
86
|
-
end
|
57
|
+
klass.define_instance_method('close_read')
|
87
58
|
|
88
|
-
|
89
|
-
method.define_argument('mode')
|
90
|
-
end
|
59
|
+
klass.define_instance_method('close_write')
|
91
60
|
|
92
|
-
|
93
|
-
method.define_optional_argument('external')
|
94
|
-
method.define_optional_argument('internal')
|
95
|
-
method.define_optional_argument('options')
|
96
|
-
end
|
61
|
+
klass.define_instance_method('closed?')
|
97
62
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
method.define_optional_argument('options')
|
102
|
-
end
|
63
|
+
klass.define_instance_method('print') do |method|
|
64
|
+
method.define_rest_argument('args')
|
65
|
+
end
|
103
66
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
67
|
+
klass.define_instance_method('printf') do |method|
|
68
|
+
method.define_argument('fmt')
|
69
|
+
method.define_rest_argument('args')
|
70
|
+
end
|
108
71
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
method.define_optional_argument('offset')
|
113
|
-
method.define_optional_argument('options')
|
114
|
-
end
|
72
|
+
klass.define_instance_method('putc') do |method|
|
73
|
+
method.define_argument('obj')
|
74
|
+
end
|
115
75
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
end
|
76
|
+
klass.define_instance_method('puts') do |method|
|
77
|
+
method.define_rest_argument('args')
|
78
|
+
end
|
120
79
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
method.define_optional_argument('limit')
|
125
|
-
method.define_optional_argument('options')
|
126
|
-
end
|
80
|
+
klass.define_instance_method('set_pipe_info') do |method|
|
81
|
+
method.define_argument('write')
|
82
|
+
end
|
127
83
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
method.define_optional_argument('errorables')
|
132
|
-
method.define_optional_argument('timeout')
|
133
|
-
end
|
84
|
+
klass.define_instance_method('syswrite') do |method|
|
85
|
+
method.define_argument('data')
|
86
|
+
end
|
134
87
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
method.define_argument('errorables')
|
139
|
-
method.define_argument('timeout')
|
140
|
-
end
|
88
|
+
klass.define_instance_method('write') do |method|
|
89
|
+
method.define_argument('data')
|
90
|
+
end
|
141
91
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
method.define_optional_argument('mode')
|
146
|
-
method.define_optional_argument('sync')
|
92
|
+
klass.define_instance_method('write_nonblock') do |method|
|
93
|
+
method.define_argument('data')
|
94
|
+
end
|
147
95
|
end
|
148
96
|
|
149
|
-
|
150
|
-
|
151
|
-
method.define_optional_argument('mode')
|
152
|
-
method.define_optional_argument('perm')
|
153
|
-
end
|
97
|
+
defs.define_constant('IPSocket::CREAT') do |klass|
|
98
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
154
99
|
|
155
|
-
klass.define_method('try_convert') do |method|
|
156
|
-
method.define_argument('obj')
|
157
100
|
end
|
158
101
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
method.define_rest_argument('args')
|
163
|
-
end
|
102
|
+
defs.define_constant('IPSocket::EAGAINWaitReadable') do |klass|
|
103
|
+
klass.inherits(defs.constant_proxy('Errno::EAGAIN', RubyLint.registry))
|
104
|
+
klass.inherits(defs.constant_proxy('IO::WaitReadable', RubyLint.registry))
|
164
105
|
|
165
|
-
klass.define_instance_method('<<') do |method|
|
166
|
-
method.define_argument('obj')
|
167
106
|
end
|
168
107
|
|
169
|
-
|
170
|
-
|
171
|
-
|
108
|
+
defs.define_constant('IPSocket::EAGAINWaitWritable') do |klass|
|
109
|
+
klass.inherits(defs.constant_proxy('Errno::EAGAIN', RubyLint.registry))
|
110
|
+
klass.inherits(defs.constant_proxy('IO::WaitWritable', RubyLint.registry))
|
172
111
|
|
173
|
-
klass.define_instance_method('advise') do |method|
|
174
|
-
method.define_argument('advice')
|
175
|
-
method.define_optional_argument('offset')
|
176
|
-
method.define_optional_argument('len')
|
177
112
|
end
|
178
113
|
|
179
|
-
|
180
|
-
|
181
|
-
klass.define_instance_method('any?')
|
114
|
+
defs.define_constant('IPSocket::EXCL') do |klass|
|
115
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
182
116
|
|
183
|
-
klass.define_instance_method('autoclose=') do |method|
|
184
|
-
method.define_argument('autoclose')
|
185
117
|
end
|
186
118
|
|
187
|
-
|
188
|
-
|
189
|
-
klass.define_instance_method('binmode')
|
119
|
+
defs.define_constant('IPSocket::EachReader') do |klass|
|
120
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
190
121
|
|
191
|
-
|
122
|
+
klass.define_instance_method('each')
|
192
123
|
|
193
|
-
|
124
|
+
klass.define_instance_method('initialize') do |method|
|
125
|
+
method.define_argument('io')
|
126
|
+
method.define_argument('buffer')
|
127
|
+
method.define_argument('separator')
|
128
|
+
method.define_argument('limit')
|
194
129
|
|
195
|
-
|
130
|
+
method.returns { |object| object.instance }
|
131
|
+
end
|
196
132
|
|
197
|
-
|
133
|
+
klass.define_instance_method('read_all')
|
198
134
|
|
199
|
-
|
200
|
-
method.define_optional_argument('initial_state')
|
201
|
-
end
|
135
|
+
klass.define_instance_method('read_to_limit')
|
202
136
|
|
203
|
-
|
137
|
+
klass.define_instance_method('read_to_separator')
|
204
138
|
|
205
|
-
|
206
|
-
method.define_argument('value')
|
139
|
+
klass.define_instance_method('read_to_separator_with_limit')
|
207
140
|
end
|
208
141
|
|
209
|
-
|
142
|
+
defs.define_constant('IPSocket::Enumerator') do |klass|
|
143
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
144
|
+
klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
|
210
145
|
|
211
|
-
|
146
|
+
klass.define_instance_method('each') do |method|
|
147
|
+
method.define_rest_argument('args')
|
148
|
+
end
|
212
149
|
|
213
|
-
|
150
|
+
klass.define_instance_method('each_with_index')
|
214
151
|
|
215
|
-
|
152
|
+
klass.define_instance_method('initialize') do |method|
|
153
|
+
method.define_optional_argument('receiver_or_size')
|
154
|
+
method.define_optional_argument('method_name')
|
155
|
+
method.define_rest_argument('method_args')
|
216
156
|
|
217
|
-
|
157
|
+
method.returns { |object| object.instance }
|
158
|
+
end
|
218
159
|
|
219
|
-
|
160
|
+
klass.define_instance_method('next')
|
220
161
|
|
221
|
-
|
162
|
+
klass.define_instance_method('next_values')
|
222
163
|
|
223
|
-
|
224
|
-
method.define_optional_argument('item')
|
225
|
-
end
|
164
|
+
klass.define_instance_method('peek')
|
226
165
|
|
227
|
-
|
228
|
-
method.define_optional_argument('many')
|
229
|
-
end
|
166
|
+
klass.define_instance_method('peek_values')
|
230
167
|
|
231
|
-
|
168
|
+
klass.define_instance_method('rewind')
|
232
169
|
|
233
|
-
|
170
|
+
klass.define_instance_method('size')
|
234
171
|
|
235
|
-
|
236
|
-
|
172
|
+
klass.define_instance_method('with_index') do |method|
|
173
|
+
method.define_optional_argument('offset')
|
174
|
+
end
|
237
175
|
end
|
238
176
|
|
239
|
-
|
177
|
+
defs.define_constant('IPSocket::FD_CLOEXEC') do |klass|
|
178
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
240
179
|
|
241
|
-
klass.define_instance_method('do_not_reverse_lookup=') do |method|
|
242
|
-
method.define_argument('setting')
|
243
180
|
end
|
244
181
|
|
245
|
-
|
246
|
-
|
247
|
-
end
|
182
|
+
defs.define_constant('IPSocket::FFI') do |klass|
|
183
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
248
184
|
|
249
|
-
|
185
|
+
klass.define_method('add_typedef') do |method|
|
186
|
+
method.define_argument('current')
|
187
|
+
method.define_argument('add')
|
188
|
+
end
|
250
189
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
end
|
190
|
+
klass.define_method('config') do |method|
|
191
|
+
method.define_argument('name')
|
192
|
+
end
|
255
193
|
|
256
|
-
|
194
|
+
klass.define_method('config_hash') do |method|
|
195
|
+
method.define_argument('name')
|
196
|
+
end
|
257
197
|
|
258
|
-
|
198
|
+
klass.define_method('errno')
|
259
199
|
|
260
|
-
|
200
|
+
klass.define_method('find_type') do |method|
|
201
|
+
method.define_argument('name')
|
202
|
+
end
|
261
203
|
|
262
|
-
|
263
|
-
|
264
|
-
|
204
|
+
klass.define_method('generate_function') do |method|
|
205
|
+
method.define_argument('ptr')
|
206
|
+
method.define_argument('name')
|
207
|
+
method.define_argument('args')
|
208
|
+
method.define_argument('ret')
|
209
|
+
end
|
265
210
|
|
266
|
-
|
267
|
-
|
268
|
-
|
211
|
+
klass.define_method('generate_trampoline') do |method|
|
212
|
+
method.define_argument('obj')
|
213
|
+
method.define_argument('name')
|
214
|
+
method.define_argument('args')
|
215
|
+
method.define_argument('ret')
|
216
|
+
end
|
269
217
|
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
end
|
218
|
+
klass.define_method('size_to_type') do |method|
|
219
|
+
method.define_argument('size')
|
220
|
+
end
|
274
221
|
|
275
|
-
|
276
|
-
|
222
|
+
klass.define_method('type_size') do |method|
|
223
|
+
method.define_argument('type')
|
224
|
+
end
|
277
225
|
end
|
278
226
|
|
279
|
-
|
280
|
-
|
281
|
-
end
|
227
|
+
defs.define_constant('IPSocket::FNM_CASEFOLD') do |klass|
|
228
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
282
229
|
|
283
|
-
klass.define_instance_method('each_with_object') do |method|
|
284
|
-
method.define_argument('memo')
|
285
230
|
end
|
286
231
|
|
287
|
-
|
288
|
-
|
289
|
-
klass.define_instance_method('ensure_open_and_readable')
|
290
|
-
|
291
|
-
klass.define_instance_method('ensure_open_and_writable')
|
232
|
+
defs.define_constant('IPSocket::FNM_DOTMATCH') do |klass|
|
233
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
292
234
|
|
293
|
-
klass.define_instance_method('entries') do |method|
|
294
|
-
method.define_rest_argument('arg')
|
295
235
|
end
|
296
236
|
|
297
|
-
|
237
|
+
defs.define_constant('IPSocket::FNM_NOESCAPE') do |klass|
|
238
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
298
239
|
|
299
|
-
klass.define_instance_method('eof!')
|
300
|
-
|
301
|
-
klass.define_instance_method('eof?')
|
302
|
-
|
303
|
-
klass.define_instance_method('expect') do |method|
|
304
|
-
method.define_argument('pat')
|
305
|
-
method.define_optional_argument('timeout')
|
306
240
|
end
|
307
241
|
|
308
|
-
|
309
|
-
|
310
|
-
klass.define_instance_method('external=')
|
242
|
+
defs.define_constant('IPSocket::FNM_PATHNAME') do |klass|
|
243
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
311
244
|
|
312
|
-
klass.define_instance_method('external_encoding')
|
313
|
-
|
314
|
-
klass.define_instance_method('fcntl') do |method|
|
315
|
-
method.define_argument('command')
|
316
|
-
method.define_optional_argument('arg')
|
317
245
|
end
|
318
246
|
|
319
|
-
|
247
|
+
defs.define_constant('IPSocket::FNM_SYSCASE') do |klass|
|
248
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
320
249
|
|
321
|
-
klass.define_instance_method('find') do |method|
|
322
|
-
method.define_optional_argument('ifnone')
|
323
250
|
end
|
324
251
|
|
325
|
-
|
326
|
-
|
327
|
-
klass.define_instance_method('find_index') do |method|
|
328
|
-
method.define_optional_argument('value')
|
329
|
-
end
|
252
|
+
defs.define_constant('IPSocket::F_GETFD') do |klass|
|
253
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
330
254
|
|
331
|
-
klass.define_instance_method('first') do |method|
|
332
|
-
method.define_optional_argument('n')
|
333
255
|
end
|
334
256
|
|
335
|
-
|
257
|
+
defs.define_constant('IPSocket::F_GETFL') do |klass|
|
258
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
336
259
|
|
337
|
-
klass.define_instance_method('flush')
|
338
|
-
|
339
|
-
klass.define_instance_method('from_descriptor') do |method|
|
340
|
-
method.define_argument('fixnum')
|
341
260
|
end
|
342
261
|
|
343
|
-
|
344
|
-
|
345
|
-
klass.define_instance_method('getbyte')
|
262
|
+
defs.define_constant('IPSocket::F_OK') do |klass|
|
263
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
346
264
|
|
347
|
-
klass.define_instance_method('getc')
|
348
|
-
|
349
|
-
klass.define_instance_method('getpeername')
|
350
|
-
|
351
|
-
klass.define_instance_method('gets') do |method|
|
352
|
-
method.define_optional_argument('sep_or_limit')
|
353
|
-
method.define_optional_argument('limit')
|
354
265
|
end
|
355
266
|
|
356
|
-
|
357
|
-
|
358
|
-
klass.define_instance_method('getsockopt') do |method|
|
359
|
-
method.define_argument('level')
|
360
|
-
method.define_argument('optname')
|
361
|
-
end
|
267
|
+
defs.define_constant('IPSocket::F_SETFD') do |klass|
|
268
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
362
269
|
|
363
|
-
klass.define_instance_method('grep') do |method|
|
364
|
-
method.define_argument('pattern')
|
365
270
|
end
|
366
271
|
|
367
|
-
|
272
|
+
defs.define_constant('IPSocket::F_SETFL') do |klass|
|
273
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
368
274
|
|
369
|
-
klass.define_instance_method('include?') do |method|
|
370
|
-
method.define_argument('obj')
|
371
275
|
end
|
372
276
|
|
373
|
-
|
277
|
+
defs.define_constant('IPSocket::InternalBuffer') do |klass|
|
278
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
374
279
|
|
375
|
-
|
376
|
-
method.define_argument('fd')
|
377
|
-
method.define_optional_argument('mode')
|
378
|
-
method.define_optional_argument('options')
|
379
|
-
end
|
280
|
+
klass.define_method('allocate')
|
380
281
|
|
381
|
-
|
382
|
-
method.define_optional_argument('initial')
|
383
|
-
method.define_optional_argument('sym')
|
384
|
-
end
|
282
|
+
klass.define_instance_method('channel')
|
385
283
|
|
386
|
-
|
284
|
+
klass.define_instance_method('discard') do |method|
|
285
|
+
method.define_argument('skip')
|
286
|
+
end
|
387
287
|
|
388
|
-
|
288
|
+
klass.define_instance_method('empty?')
|
389
289
|
|
390
|
-
|
290
|
+
klass.define_instance_method('empty_to') do |method|
|
291
|
+
method.define_argument('io')
|
292
|
+
end
|
391
293
|
|
392
|
-
|
393
|
-
method.define_argument('command')
|
394
|
-
method.define_optional_argument('arg')
|
395
|
-
end
|
294
|
+
klass.define_instance_method('exhausted?')
|
396
295
|
|
397
|
-
|
296
|
+
klass.define_instance_method('fill') do |method|
|
297
|
+
method.define_argument('io')
|
298
|
+
end
|
398
299
|
|
399
|
-
|
300
|
+
klass.define_instance_method('fill_from') do |method|
|
301
|
+
method.define_argument('io')
|
302
|
+
method.define_optional_argument('skip')
|
303
|
+
end
|
400
304
|
|
401
|
-
|
305
|
+
klass.define_instance_method('find') do |method|
|
306
|
+
method.define_argument('pattern')
|
307
|
+
method.define_optional_argument('discard')
|
308
|
+
end
|
402
309
|
|
403
|
-
|
404
|
-
method.define_argument('line_number')
|
405
|
-
end
|
310
|
+
klass.define_instance_method('full?')
|
406
311
|
|
407
|
-
|
408
|
-
|
409
|
-
|
312
|
+
klass.define_instance_method('getbyte') do |method|
|
313
|
+
method.define_argument('io')
|
314
|
+
end
|
410
315
|
|
411
|
-
|
316
|
+
klass.define_instance_method('getchar') do |method|
|
317
|
+
method.define_argument('io')
|
318
|
+
end
|
412
319
|
|
413
|
-
|
320
|
+
klass.define_instance_method('inspect')
|
414
321
|
|
415
|
-
|
322
|
+
klass.define_instance_method('put_back') do |method|
|
323
|
+
method.define_argument('chr')
|
324
|
+
end
|
416
325
|
|
417
|
-
|
418
|
-
|
419
|
-
|
326
|
+
klass.define_instance_method('read_to_char_boundary') do |method|
|
327
|
+
method.define_argument('io')
|
328
|
+
method.define_argument('str')
|
329
|
+
end
|
420
330
|
|
421
|
-
|
331
|
+
klass.define_instance_method('reset!')
|
422
332
|
|
423
|
-
|
333
|
+
klass.define_instance_method('shift') do |method|
|
334
|
+
method.define_optional_argument('count')
|
335
|
+
end
|
424
336
|
|
425
|
-
|
337
|
+
klass.define_instance_method('size')
|
426
338
|
|
427
|
-
|
339
|
+
klass.define_instance_method('start')
|
428
340
|
|
429
|
-
|
341
|
+
klass.define_instance_method('total')
|
430
342
|
|
431
|
-
|
343
|
+
klass.define_instance_method('unseek!') do |method|
|
344
|
+
method.define_argument('io')
|
345
|
+
end
|
432
346
|
|
433
|
-
|
347
|
+
klass.define_instance_method('unshift') do |method|
|
348
|
+
method.define_argument('str')
|
349
|
+
method.define_argument('start_pos')
|
350
|
+
end
|
434
351
|
|
435
|
-
|
352
|
+
klass.define_instance_method('unused')
|
436
353
|
|
437
|
-
|
354
|
+
klass.define_instance_method('used')
|
438
355
|
|
439
|
-
|
440
|
-
method.define_optional_argument('reverse_lookup')
|
356
|
+
klass.define_instance_method('write_synced?')
|
441
357
|
end
|
442
358
|
|
443
|
-
|
444
|
-
|
445
|
-
klass.define_instance_method('pid=')
|
359
|
+
defs.define_constant('IPSocket::LOCK_EX') do |klass|
|
360
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
446
361
|
|
447
|
-
klass.define_instance_method('pipe=') do |method|
|
448
|
-
method.define_argument('v')
|
449
362
|
end
|
450
363
|
|
451
|
-
|
364
|
+
defs.define_constant('IPSocket::LOCK_NB') do |klass|
|
365
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
452
366
|
|
453
|
-
klass.define_instance_method('pos')
|
454
|
-
|
455
|
-
klass.define_instance_method('pos=') do |method|
|
456
|
-
method.define_argument('offset')
|
457
367
|
end
|
458
368
|
|
459
|
-
|
369
|
+
defs.define_constant('IPSocket::LOCK_SH') do |klass|
|
370
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
460
371
|
|
461
|
-
klass.define_instance_method('prim_ftruncate') do |method|
|
462
|
-
method.define_argument('offset')
|
463
372
|
end
|
464
373
|
|
465
|
-
|
466
|
-
|
467
|
-
method.define_argument('whence')
|
468
|
-
end
|
374
|
+
defs.define_constant('IPSocket::LOCK_UN') do |klass|
|
375
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
469
376
|
|
470
|
-
klass.define_instance_method('prim_write') do |method|
|
471
|
-
method.define_argument('str')
|
472
377
|
end
|
473
378
|
|
474
|
-
|
475
|
-
|
476
|
-
end
|
379
|
+
defs.define_constant('IPSocket::NOCTTY') do |klass|
|
380
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
477
381
|
|
478
|
-
klass.define_instance_method('printf') do |method|
|
479
|
-
method.define_argument('fmt')
|
480
|
-
method.define_rest_argument('args')
|
481
382
|
end
|
482
383
|
|
483
|
-
|
484
|
-
|
485
|
-
end
|
384
|
+
defs.define_constant('IPSocket::NONBLOCK') do |klass|
|
385
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
486
386
|
|
487
|
-
klass.define_instance_method('puts') do |method|
|
488
|
-
method.define_rest_argument('args')
|
489
387
|
end
|
490
388
|
|
491
|
-
|
492
|
-
|
493
|
-
end
|
389
|
+
defs.define_constant('IPSocket::NULL') do |klass|
|
390
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
494
391
|
|
495
|
-
klass.define_instance_method('raw_write') do |method|
|
496
|
-
method.define_argument('str')
|
497
392
|
end
|
498
393
|
|
499
|
-
|
500
|
-
|
501
|
-
method.define_optional_argument('buffer')
|
502
|
-
end
|
394
|
+
defs.define_constant('IPSocket::RDONLY') do |klass|
|
395
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
503
396
|
|
504
|
-
klass.define_instance_method('read_bom_byte')
|
505
|
-
|
506
|
-
klass.define_instance_method('read_nonblock') do |method|
|
507
|
-
method.define_argument('size')
|
508
|
-
method.define_optional_argument('buffer')
|
509
|
-
end
|
510
|
-
|
511
|
-
klass.define_instance_method('read_primitive') do |method|
|
512
|
-
method.define_argument('number_of_bytes')
|
513
397
|
end
|
514
398
|
|
515
|
-
|
516
|
-
|
517
|
-
klass.define_instance_method('readchar')
|
518
|
-
|
519
|
-
klass.define_instance_method('readline') do |method|
|
520
|
-
method.define_optional_argument('sep')
|
521
|
-
end
|
399
|
+
defs.define_constant('IPSocket::RDWR') do |klass|
|
400
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
522
401
|
|
523
|
-
klass.define_instance_method('readlines') do |method|
|
524
|
-
method.define_optional_argument('sep')
|
525
402
|
end
|
526
403
|
|
527
|
-
|
528
|
-
|
529
|
-
method.define_optional_argument('buffer')
|
530
|
-
end
|
404
|
+
defs.define_constant('IPSocket::R_OK') do |klass|
|
405
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
531
406
|
|
532
|
-
klass.define_instance_method('recv') do |method|
|
533
|
-
method.define_argument('bytes_to_read')
|
534
|
-
method.define_optional_argument('flags')
|
535
407
|
end
|
536
408
|
|
537
|
-
|
538
|
-
|
539
|
-
method.define_optional_argument('flags')
|
540
|
-
end
|
409
|
+
defs.define_constant('IPSocket::Readable') do |klass|
|
410
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
541
411
|
|
542
|
-
klass.define_instance_method('recvfrom') do |method|
|
543
|
-
method.define_argument('maxlen')
|
544
|
-
method.define_optional_argument('flags')
|
545
412
|
end
|
546
413
|
|
547
|
-
|
548
|
-
|
549
|
-
method.define_optional_argument('flags')
|
550
|
-
end
|
414
|
+
defs.define_constant('IPSocket::SEEK_CUR') do |klass|
|
415
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
551
416
|
|
552
|
-
klass.define_instance_method('reduce') do |method|
|
553
|
-
method.define_optional_argument('initial')
|
554
|
-
method.define_optional_argument('sym')
|
555
417
|
end
|
556
418
|
|
557
|
-
|
419
|
+
defs.define_constant('IPSocket::SEEK_END') do |klass|
|
420
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
558
421
|
|
559
|
-
klass.define_instance_method('reopen') do |method|
|
560
|
-
method.define_argument('other')
|
561
|
-
method.define_optional_argument('mode')
|
562
422
|
end
|
563
423
|
|
564
|
-
|
565
|
-
|
566
|
-
end
|
424
|
+
defs.define_constant('IPSocket::SEEK_SET') do |klass|
|
425
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
567
426
|
|
568
|
-
klass.define_instance_method('reopen_path') do |method|
|
569
|
-
method.define_argument('string')
|
570
|
-
method.define_argument('mode')
|
571
427
|
end
|
572
428
|
|
573
|
-
|
574
|
-
|
575
|
-
klass.define_instance_method('reverse_each')
|
429
|
+
defs.define_constant('IPSocket::SYNC') do |klass|
|
430
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
576
431
|
|
577
|
-
klass.define_instance_method('rewind')
|
578
|
-
|
579
|
-
klass.define_instance_method('scanf') do |method|
|
580
|
-
method.define_argument('str')
|
581
|
-
method.define_block_argument('b')
|
582
432
|
end
|
583
433
|
|
584
|
-
|
585
|
-
|
586
|
-
|
434
|
+
defs.define_constant('IPSocket::Socketable') do |klass|
|
435
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
436
|
+
|
437
|
+
klass.define_instance_method('accept')
|
587
438
|
end
|
588
439
|
|
589
|
-
|
440
|
+
defs.define_constant('IPSocket::SortedElement') do |klass|
|
441
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
590
442
|
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
method.define_optional_argument('options')
|
595
|
-
end
|
443
|
+
klass.define_instance_method('<=>') do |method|
|
444
|
+
method.define_argument('other')
|
445
|
+
end
|
596
446
|
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
method.define_optional_argument('optval')
|
601
|
-
end
|
447
|
+
klass.define_instance_method('initialize') do |method|
|
448
|
+
method.define_argument('val')
|
449
|
+
method.define_argument('sort_id')
|
602
450
|
|
603
|
-
|
604
|
-
|
605
|
-
end
|
451
|
+
method.returns { |object| object.instance }
|
452
|
+
end
|
606
453
|
|
607
|
-
|
608
|
-
method.define_optional_argument('arg')
|
609
|
-
end
|
454
|
+
klass.define_instance_method('sort_id')
|
610
455
|
|
611
|
-
|
612
|
-
method.define_argument('bytes')
|
613
|
-
method.define_argument('flags')
|
614
|
-
method.define_argument('type')
|
456
|
+
klass.define_instance_method('value')
|
615
457
|
end
|
616
458
|
|
617
|
-
|
459
|
+
defs.define_constant('IPSocket::StreamCopier') do |klass|
|
460
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
618
461
|
|
619
|
-
|
462
|
+
klass.define_instance_method('initialize') do |method|
|
463
|
+
method.define_argument('from')
|
464
|
+
method.define_argument('to')
|
465
|
+
method.define_argument('length')
|
466
|
+
method.define_argument('offset')
|
620
467
|
|
621
|
-
|
468
|
+
method.returns { |object| object.instance }
|
469
|
+
end
|
622
470
|
|
623
|
-
|
471
|
+
klass.define_instance_method('read_method') do |method|
|
472
|
+
method.define_argument('obj')
|
473
|
+
end
|
624
474
|
|
625
|
-
|
475
|
+
klass.define_instance_method('run')
|
626
476
|
|
627
|
-
|
628
|
-
|
477
|
+
klass.define_instance_method('to_io') do |method|
|
478
|
+
method.define_argument('obj')
|
479
|
+
method.define_argument('mode')
|
480
|
+
end
|
629
481
|
end
|
630
482
|
|
631
|
-
|
632
|
-
|
633
|
-
method.define_optional_argument('buffer')
|
634
|
-
end
|
483
|
+
defs.define_constant('IPSocket::TRUNC') do |klass|
|
484
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
635
485
|
|
636
|
-
klass.define_instance_method('sysseek') do |method|
|
637
|
-
method.define_argument('amount')
|
638
|
-
method.define_optional_argument('whence')
|
639
486
|
end
|
640
487
|
|
641
|
-
|
642
|
-
|
643
|
-
end
|
488
|
+
defs.define_constant('IPSocket::TransferIO') do |klass|
|
489
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
644
490
|
|
645
|
-
|
646
|
-
method.define_argument('n')
|
647
|
-
end
|
491
|
+
klass.define_instance_method('recv_fd')
|
648
492
|
|
649
|
-
|
493
|
+
klass.define_instance_method('send_io')
|
494
|
+
end
|
650
495
|
|
651
|
-
|
496
|
+
defs.define_constant('IPSocket::WRONLY') do |klass|
|
497
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
652
498
|
|
653
|
-
klass.define_instance_method('to_a') do |method|
|
654
|
-
method.define_rest_argument('arg')
|
655
499
|
end
|
656
500
|
|
657
|
-
|
658
|
-
|
659
|
-
klass.define_instance_method('to_io')
|
501
|
+
defs.define_constant('IPSocket::W_OK') do |klass|
|
502
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
660
503
|
|
661
|
-
klass.define_instance_method('to_set') do |method|
|
662
|
-
method.define_optional_argument('klass')
|
663
|
-
method.define_rest_argument('args')
|
664
|
-
method.define_block_argument('block')
|
665
504
|
end
|
666
505
|
|
667
|
-
|
506
|
+
defs.define_constant('IPSocket::WaitReadable') do |klass|
|
507
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
668
508
|
|
669
|
-
klass.define_instance_method('ttyname')
|
670
|
-
|
671
|
-
klass.define_instance_method('ungetbyte') do |method|
|
672
|
-
method.define_argument('obj')
|
673
509
|
end
|
674
510
|
|
675
|
-
|
676
|
-
|
677
|
-
end
|
511
|
+
defs.define_constant('IPSocket::WaitWritable') do |klass|
|
512
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
678
513
|
|
679
|
-
klass.define_instance_method('with_object') do |method|
|
680
|
-
method.define_argument('memo')
|
681
514
|
end
|
682
515
|
|
683
|
-
|
684
|
-
|
685
|
-
end
|
516
|
+
defs.define_constant('IPSocket::Writable') do |klass|
|
517
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
686
518
|
|
687
|
-
klass.define_instance_method('write_nonblock') do |method|
|
688
|
-
method.define_argument('data')
|
689
519
|
end
|
690
520
|
|
691
|
-
|
692
|
-
|
521
|
+
defs.define_constant('IPSocket::X_OK') do |klass|
|
522
|
+
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
|
523
|
+
|
693
524
|
end
|
694
525
|
end
|
695
|
-
|
696
|
-
RubyLint::GlobalScope.definitions.lookup(:const, 'IPSocket').deep_freeze
|