ruby-lint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.asc +17 -0
- data.tar.gz.asc +14 -14
- data/.ruby-version +1 -0
- data/.travis.yml +0 -1
- data/.yardopts +1 -0
- data/CONTRIBUTING.md +41 -0
- data/MANIFEST +99 -66
- data/README.md +36 -10
- data/Rakefile +6 -0
- data/checksum/ruby-lint-0.0.4.gem.sha512 +1 -0
- data/doc/changelog.md +94 -0
- data/lib/ruby-lint.rb +18 -1
- data/lib/ruby-lint/analysis/argument_amount.rb +43 -10
- data/lib/ruby-lint/analysis/base.rb +23 -17
- data/lib/ruby-lint/analysis/pedantics.rb +3 -1
- data/lib/ruby-lint/analysis/undefined_methods.rb +48 -10
- data/lib/ruby-lint/analysis/unused_variables.rb +27 -5
- data/lib/ruby-lint/ast/node.rb +10 -0
- data/lib/ruby-lint/cli/analyze.rb +22 -4
- data/lib/ruby-lint/cli/base.rb +8 -2
- data/lib/ruby-lint/configuration.rb +43 -4
- data/lib/ruby-lint/definition/constant_proxy.rb +10 -1
- data/lib/ruby-lint/definition/ruby_method.rb +45 -31
- data/lib/ruby-lint/definition/ruby_object.rb +56 -15
- data/lib/ruby-lint/definition_builder/base.rb +4 -0
- 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 +1 -0
- data/lib/ruby-lint/definition_builder/ruby_class.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_hash.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_module.rb +3 -1
- data/lib/ruby-lint/definition_generator.rb +15 -7
- data/lib/ruby-lint/definitions/core/arg0.rb +1 -1
- data/lib/ruby-lint/definitions/core/argf.rb +1 -1
- data/lib/ruby-lint/definitions/core/argument_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/argv.rb +1 -1
- data/lib/ruby-lint/definitions/core/array.rb +6 -6
- data/lib/ruby-lint/definitions/core/autoload.rb +2 -2
- data/lib/ruby-lint/definitions/core/basic_object.rb +8 -12
- data/lib/ruby-lint/definitions/core/bignum.rb +2 -2
- data/lib/ruby-lint/definitions/core/binding.rb +2 -2
- data/lib/ruby-lint/definitions/core/class.rb +2 -2
- data/lib/ruby-lint/definitions/core/comparable.rb +1 -1
- data/lib/ruby-lint/definitions/core/complex.rb +4 -4
- data/lib/ruby-lint/definitions/core/condition_variable.rb +2 -2
- data/lib/ruby-lint/definitions/core/continuation.rb +2 -2
- data/lib/ruby-lint/definitions/core/data.rb +2 -2
- data/lib/ruby-lint/definitions/core/date.rb +34 -34
- data/lib/ruby-lint/definitions/core/date_time.rb +26 -26
- data/lib/ruby-lint/definitions/core/default_record_separator.rb +1 -1
- data/lib/ruby-lint/definitions/core/digest.rb +14 -14
- data/lib/ruby-lint/definitions/core/dir.rb +34 -34
- data/lib/ruby-lint/definitions/core/encoding.rb +237 -237
- data/lib/ruby-lint/definitions/core/encoding_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/enumerable.rb +15 -15
- data/lib/ruby-lint/definitions/core/enumerator.rb +2 -2
- data/lib/ruby-lint/definitions/core/env.rb +1 -1
- data/lib/ruby-lint/definitions/core/eoferror.rb +2 -2
- data/lib/ruby-lint/definitions/core/erb.rb +30 -23
- data/lib/ruby-lint/definitions/core/errno.rb +525 -525
- data/lib/ruby-lint/definitions/core/etc.rb +6 -6
- data/lib/ruby-lint/definitions/core/exception.rb +2 -2
- data/lib/ruby-lint/definitions/core/false.rb +1 -1
- data/lib/ruby-lint/definitions/core/false_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/fatal_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/fiber.rb +2 -2
- data/lib/ruby-lint/definitions/core/fiber_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/file.rb +68 -68
- data/lib/ruby-lint/definitions/core/file_list.rb +2 -2
- data/lib/ruby-lint/definitions/core/file_test.rb +1 -1
- data/lib/ruby-lint/definitions/core/file_utils.rb +16 -16
- data/lib/ruby-lint/definitions/core/fixnum.rb +4 -4
- data/lib/ruby-lint/definitions/core/float.rb +16 -16
- data/lib/ruby-lint/definitions/core/float_domain_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/gc.rb +2 -2
- data/lib/ruby-lint/definitions/core/gem.rb +119 -119
- data/lib/ruby-lint/definitions/core/hash.rb +14 -14
- data/lib/ruby-lint/definitions/core/immediate_value.rb +1 -1
- data/lib/ruby-lint/definitions/core/index_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/integer.rb +2 -2
- data/lib/ruby-lint/definitions/core/interrupt.rb +2 -2
- data/lib/ruby-lint/definitions/core/io.rb +38 -38
- data/lib/ruby-lint/definitions/core/ioerror.rb +2 -2
- data/lib/ruby-lint/definitions/core/kernel.rb +113 -60
- data/lib/ruby-lint/definitions/core/key_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/load_error.rb +6 -6
- data/lib/ruby-lint/definitions/core/local_jump_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/marshal.rb +35 -35
- data/lib/ruby-lint/definitions/core/match_data.rb +2 -2
- data/lib/ruby-lint/definitions/core/math.rb +7 -7
- data/lib/ruby-lint/definitions/core/memory_segmention_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/method.rb +2 -2
- data/lib/ruby-lint/definitions/core/module.rb +39 -3
- data/lib/ruby-lint/definitions/core/monitor.rb +4 -4
- data/lib/ruby-lint/definitions/core/monitor_mixin.rb +5 -5
- data/lib/ruby-lint/definitions/core/mutex.rb +2 -2
- data/lib/ruby-lint/definitions/core/name_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/nil.rb +1 -1
- data/lib/ruby-lint/definitions/core/nil_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/no_memory_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/no_method_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/not_implemented_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/numeric.rb +2 -2
- data/lib/ruby-lint/definitions/core/object.rb +2 -2
- data/lib/ruby-lint/definitions/core/object_space.rb +1 -1
- data/lib/ruby-lint/definitions/core/open_struct.rb +3 -3
- data/lib/ruby-lint/definitions/core/option_parser.rb +83 -83
- data/lib/ruby-lint/definitions/core/precision.rb +1 -1
- data/lib/ruby-lint/definitions/core/primitive_failure.rb +2 -2
- data/lib/ruby-lint/definitions/core/proc.rb +2 -2
- data/lib/ruby-lint/definitions/core/process.rb +29 -29
- data/lib/ruby-lint/definitions/core/queue.rb +2 -2
- data/lib/ruby-lint/definitions/core/rake.rb +117 -117
- data/lib/ruby-lint/definitions/core/rake_file_utils.rb +1 -1
- data/lib/ruby-lint/definitions/core/rakeversion.rb +1 -1
- data/lib/ruby-lint/definitions/core/random.rb +2 -2
- data/lib/ruby-lint/definitions/core/range.rb +4 -4
- data/lib/ruby-lint/definitions/core/range_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/rational.rb +2 -2
- data/lib/ruby-lint/definitions/core/rb_config.rb +3 -3
- data/lib/ruby-lint/definitions/core/regexp.rb +28 -28
- data/lib/ruby-lint/definitions/core/regexp_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/ruby_copyright.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_description.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_engine.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_patchlevel.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_platform.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_release_date.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_version.rb +1 -1
- data/lib/ruby-lint/definitions/core/runtime_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/scan_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/script_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/security_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/shellwords.rb +1 -1
- data/lib/ruby-lint/definitions/core/signal.rb +3 -3
- data/lib/ruby-lint/definitions/core/signal_exception.rb +2 -2
- data/lib/ruby-lint/definitions/core/singleton.rb +2 -2
- data/lib/ruby-lint/definitions/core/sized_queue.rb +2 -2
- data/lib/ruby-lint/definitions/core/standard_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/stderr.rb +3 -2
- data/lib/ruby-lint/definitions/core/stdin.rb +3 -2
- data/lib/ruby-lint/definitions/core/stdout.rb +3 -2
- data/lib/ruby-lint/definitions/core/stop_iteration.rb +2 -2
- data/lib/ruby-lint/definitions/core/string.rb +21 -21
- data/lib/ruby-lint/definitions/core/string_io.rb +7 -7
- data/lib/ruby-lint/definitions/core/string_scanner.rb +4 -4
- data/lib/ruby-lint/definitions/core/struct.rb +20 -20
- data/lib/ruby-lint/definitions/core/syck.rb +4 -4
- data/lib/ruby-lint/definitions/core/symbol.rb +2 -2
- data/lib/ruby-lint/definitions/core/syntax_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_call_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_exit.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_stack_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/thread.rb +6 -6
- data/lib/ruby-lint/definitions/core/thread_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/thread_group.rb +2 -2
- data/lib/ruby-lint/definitions/core/time.rb +3 -3
- data/lib/ruby-lint/definitions/core/toplevel_binding.rb +1 -1
- data/lib/ruby-lint/definitions/core/true.rb +1 -1
- data/lib/ruby-lint/definitions/core/true_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/type_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/unbound_method.rb +2 -2
- data/lib/ruby-lint/definitions/core/unmarshalable.rb +1 -1
- data/lib/ruby-lint/definitions/core/unsupported_library_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/weak_ref.rb +4 -4
- data/lib/ruby-lint/definitions/core/yaml.rb +2361 -0
- data/lib/ruby-lint/definitions/core/zero_division_error.rb +2 -2
- data/lib/ruby-lint/definitions/global_variables.rb +9 -0
- data/lib/ruby-lint/definitions/rails/abstract_controller.rb +174 -28
- data/lib/ruby-lint/definitions/rails/action_controller.rb +4959 -550
- data/lib/ruby-lint/definitions/rails/action_dispatch.rb +2489 -292
- data/lib/ruby-lint/definitions/rails/action_mailer.rb +1285 -42
- data/lib/ruby-lint/definitions/rails/action_pack.rb +14 -6
- data/lib/ruby-lint/definitions/rails/action_view.rb +6941 -445
- data/lib/ruby-lint/definitions/rails/active_model.rb +1212 -69
- data/lib/ruby-lint/definitions/rails/active_record.rb +10344 -1450
- data/lib/ruby-lint/definitions/rails/active_support.rb +4631 -573
- data/lib/ruby-lint/definitions/rails/arel.rb +3211 -319
- data/lib/ruby-lint/definitions/rails/rails.rb +2922 -84
- data/lib/ruby-lint/definitions/rails/sprockets.rb +3048 -277
- data/lib/ruby-lint/docstring/mapping.rb +55 -0
- data/lib/ruby-lint/docstring/param_tag.rb +29 -0
- data/lib/ruby-lint/docstring/parser.rb +133 -0
- data/lib/ruby-lint/docstring/return_tag.rb +24 -0
- data/lib/ruby-lint/file_loader.rb +96 -0
- data/lib/ruby-lint/file_scanner.rb +91 -0
- data/lib/ruby-lint/global_scope.rb +56 -0
- data/lib/ruby-lint/helper/constant_paths.rb +1 -1
- data/lib/ruby-lint/inspector.rb +11 -33
- data/lib/ruby-lint/iterator.rb +31 -4
- data/lib/ruby-lint/method_call/alias.rb +46 -0
- data/lib/ruby-lint/method_call/assign_member.rb +55 -0
- data/lib/ruby-lint/method_call/attribute.rb +102 -0
- data/lib/ruby-lint/method_call/base.rb +37 -0
- data/lib/ruby-lint/method_call/define_method.rb +17 -0
- data/lib/ruby-lint/method_call/include.rb +39 -0
- data/lib/ruby-lint/parser.rb +9 -4
- data/lib/ruby-lint/presenter/text.rb +2 -1
- data/lib/ruby-lint/report.rb +19 -42
- data/lib/ruby-lint/report/entry.rb +20 -17
- data/lib/ruby-lint/runner.rb +92 -11
- data/lib/ruby-lint/template/definition.erb +2 -2
- data/lib/ruby-lint/variable_predicates.rb +7 -10
- data/lib/ruby-lint/version.rb +1 -1
- data/lib/ruby-lint/virtual_machine.rb +265 -188
- data/ruby-lint.gemspec +4 -4
- data/ruby-lint.yml +7 -0
- data/spec/fixtures/associating.rb +7 -0
- data/spec/fixtures/file_scanner/lib/example/recursive/source.rb +6 -0
- data/spec/fixtures/file_scanner/lib/example/recursive/target.rb +8 -0
- data/spec/fixtures/file_scanner/lib/example/user.rb +6 -0
- data/spec/fixtures/file_scanner/lib/test-dashes/foo.rb +4 -0
- data/spec/fixtures/file_scanner/rails/app/models/example/user.rb +6 -0
- data/spec/fixtures/file_scanner/rails/app/models/user.rb +4 -0
- data/spec/fixtures/uses_external.rb +1 -0
- data/spec/fixtures/uses_external_invalid.rb +3 -0
- data/spec/fixtures/uses_external_namespace.rb +1 -0
- data/spec/ruby-lint/analysis/{argument_amount.rb → argument_amount_spec.rb} +33 -7
- data/spec/ruby-lint/analysis/base_spec.rb +12 -0
- data/spec/ruby-lint/analysis/{pedantics.rb → pedantics_spec.rb} +24 -4
- data/spec/ruby-lint/analysis/{shadowing_variables.rb → shadowing_variables_spec.rb} +6 -6
- data/spec/ruby-lint/analysis/undefined_methods_spec.rb +320 -0
- data/spec/ruby-lint/analysis/{undefined_variables.rb → undefined_variables_spec.rb} +33 -10
- data/spec/ruby-lint/analysis/{unused_variables.rb → unused_variables_spec.rb} +36 -9
- data/spec/ruby-lint/ast/{node.rb → node_spec.rb} +12 -6
- data/spec/ruby-lint/cli/{analyze.rb → analyze_spec.rb} +16 -5
- data/spec/ruby-lint/cli/{ast.rb → ast_spec.rb} +3 -3
- data/spec/ruby-lint/configuration_spec.rb +106 -0
- data/spec/ruby-lint/definition/constant_proxy_spec.rb +54 -0
- data/spec/ruby-lint/definition/{dsl.rb → dsl_spec.rb} +15 -15
- data/spec/ruby-lint/definition/{ruby_method.rb → ruby_method_spec.rb} +31 -17
- data/spec/ruby-lint/definition/{ruby_object.rb → ruby_object_spec.rb} +28 -23
- data/spec/ruby-lint/definition_builder/{primitive.rb → primitive_spec.rb} +9 -9
- data/spec/ruby-lint/definition_builder/{ruby_class.rb → ruby_class_spec.rb} +13 -13
- data/spec/ruby-lint/definition_builder/{ruby_method.rb → ruby_method_spec.rb} +9 -9
- data/spec/ruby-lint/definition_builder/{ruby_module.rb → ruby_module_spec.rb} +12 -10
- data/spec/ruby-lint/docstring/mapping.rb +27 -0
- data/spec/ruby-lint/docstring/parser_spec.rb +88 -0
- data/spec/ruby-lint/extensions/{string.rb → string_spec.rb} +3 -3
- data/spec/ruby-lint/file_loader_spec.rb +69 -0
- data/spec/ruby-lint/file_scanner_spec.rb +51 -0
- data/spec/ruby-lint/inspector_spec.rb +44 -0
- data/spec/ruby-lint/{iterator.rb → iterator_spec.rb} +39 -4
- data/spec/ruby-lint/{nested_stack.rb → nested_stack_spec.rb} +4 -4
- data/spec/ruby-lint/parser_spec.rb +31 -0
- data/spec/ruby-lint/presenter/json_spec.rb +58 -0
- data/spec/ruby-lint/presenter/text_spec.rb +49 -0
- data/spec/ruby-lint/report/entry_spec.rb +58 -0
- data/spec/ruby-lint/report_spec.rb +39 -0
- data/spec/ruby-lint/runner_spec.rb +52 -0
- data/spec/ruby-lint/virtual_machine/alias_spec.rb +55 -0
- data/spec/ruby-lint/virtual_machine/assignments/{arrays.rb → arrays_spec.rb} +7 -7
- data/spec/ruby-lint/virtual_machine/assignments/{hashes.rb → hashes_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/assignments/{optional.rb → optional_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/assignments/{return_values.rb → return_values_spec.rb} +11 -11
- data/spec/ruby-lint/virtual_machine/assignments/{variables.rb → variables_spec.rb} +38 -7
- data/spec/ruby-lint/virtual_machine/associate_nodes_spec.rb +59 -0
- data/spec/ruby-lint/virtual_machine/{autoloading.rb → autoloading_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/{blocks.rb → blocks_spec.rb} +30 -4
- data/spec/ruby-lint/virtual_machine/classes/{class_methods.rb → class_methods_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/classes/{extending.rb → extending_spec.rb} +20 -15
- data/spec/ruby-lint/virtual_machine/classes/{redefining.rb → redefining_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/classes/{sclass.rb → sclass_spec.rb} +7 -7
- data/spec/ruby-lint/virtual_machine/classes/{scoping.rb → scoping_spec.rb} +5 -5
- data/spec/ruby-lint/virtual_machine/complex/{rails.rb → rails_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/complex/{rcap.rb → rcap_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/complex/{slop.rb → slop_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/constants_spec.rb +31 -0
- data/spec/ruby-lint/virtual_machine/{for.rb → for_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/{freeze.rb → freeze_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/global_variables_spec.rb +12 -0
- data/spec/ruby-lint/virtual_machine/inherit_kernel_spec.rb +15 -0
- data/spec/ruby-lint/virtual_machine/{interpolation.rb → interpolation_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/methods/attr_spec.rb +116 -0
- data/spec/ruby-lint/virtual_machine/methods/define_method_spec.rb +41 -0
- data/spec/ruby-lint/virtual_machine/methods/{defining.rb → defining_spec.rb} +4 -4
- data/spec/ruby-lint/virtual_machine/methods/docstrings_spec.rb +69 -0
- data/spec/ruby-lint/virtual_machine/methods/{exporting.rb → exporting_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/methods/{parameters.rb → parameters_spec.rb} +17 -5
- data/spec/ruby-lint/virtual_machine/methods/{patching.rb → patching_spec.rb} +4 -4
- data/spec/ruby-lint/virtual_machine/methods/{scoping.rb → scoping_spec.rb} +5 -5
- data/spec/ruby-lint/virtual_machine/methods/{visibility.rb → visibility_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/{modules.rb → modules_spec.rb} +39 -9
- data/spec/ruby-lint/virtual_machine/reference_amount_spec.rb +61 -0
- data/spec/ruby-lint/virtual_machine/{unused.rb → unused_spec.rb} +4 -4
- data/spec/{helper.rb → spec_helper.rb} +6 -4
- data/spec/support/building.rb +10 -6
- data/spec/support/coveralls.rb +1 -1
- data/spec/support/parsing.rb +10 -1
- data/spec/support/simplecov.rb +1 -1
- data/spec/support/versions.rb +9 -0
- data/task/test.rake +2 -4
- data/task/travis.rake +1 -0
- metadata +144 -143
- metadata.gz.asc +14 -14
- data/.rubocop.yml +0 -59
- data/doc/contributing.md +0 -16
- data/lib/ruby-lint/analysis/confusing_variables.rb +0 -26
- data/lib/ruby-lint/definitions/core/main.rb +0 -25
- data/lib/ruby-lint/definitions/core/psych.rb +0 -2231
- data/lib/ruby-lint/definitions/core/rubinius.rb +0 -16637
- data/lib/ruby-lint/definitions/core/ruby_lint.rb +0 -93
- data/spec/ruby-lint/analysis/confusing_variables.rb +0 -46
- data/spec/ruby-lint/analysis/undefined_methods.rb +0 -174
- data/spec/ruby-lint/configuration.rb +0 -54
- data/spec/ruby-lint/definition/constant_proxy.rb +0 -31
- data/spec/ruby-lint/parser.rb +0 -14
- data/spec/ruby-lint/presenter/json.rb +0 -31
- data/spec/ruby-lint/presenter/text.rb +0 -22
- data/spec/ruby-lint/report.rb +0 -50
- data/spec/ruby-lint/report/entry.rb +0 -28
- data/spec/ruby-lint/runner.rb +0 -32
- data/spec/ruby-lint/virtual_machine/associate_nodes.rb +0 -17
- data/spec/ruby-lint/virtual_machine/reference_amount.rb +0 -33
- data/spec/support/bacon.rb +0 -33
- data/task/cop.rake +0 -11
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('[]') do |method|
|
10
10
|
method.define_rest_argument('args')
|
@@ -237,8 +237,8 @@ end
|
|
237
237
|
# Created: 2013-04-01 18:33:54 +0200
|
238
238
|
# Platform: rbx 2.0.0.rc1
|
239
239
|
#
|
240
|
-
RubyLint::
|
241
|
-
klass.inherits(RubyLint::
|
240
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash::Bucket') do |klass|
|
241
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
242
242
|
|
243
243
|
klass.define_method('__class_init__')
|
244
244
|
|
@@ -290,8 +290,8 @@ end
|
|
290
290
|
# Created: 2013-04-01 18:33:54 +0200
|
291
291
|
# Platform: rbx 2.0.0.rc1
|
292
292
|
#
|
293
|
-
RubyLint::
|
294
|
-
klass.inherits(RubyLint::
|
293
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash::Entries') do |klass|
|
294
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
295
295
|
|
296
296
|
klass.define_method('[]') do |method|
|
297
297
|
method.define_rest_argument('args')
|
@@ -421,8 +421,8 @@ end
|
|
421
421
|
# Created: 2013-04-01 18:33:54 +0200
|
422
422
|
# Platform: rbx 2.0.0.rc1
|
423
423
|
#
|
424
|
-
RubyLint::
|
425
|
-
klass.inherits(RubyLint::
|
424
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash::Iterator') do |klass|
|
425
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
426
426
|
|
427
427
|
klass.define_method('__class_init__')
|
428
428
|
|
@@ -440,7 +440,7 @@ end
|
|
440
440
|
# Created: 2013-04-01 18:33:54 +0200
|
441
441
|
# Platform: rbx 2.0.0.rc1
|
442
442
|
#
|
443
|
-
RubyLint::
|
443
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash::MAX_ENTRIES') do |klass|
|
444
444
|
end
|
445
445
|
|
446
446
|
##
|
@@ -448,7 +448,7 @@ end
|
|
448
448
|
# Created: 2013-04-01 18:33:54 +0200
|
449
449
|
# Platform: rbx 2.0.0.rc1
|
450
450
|
#
|
451
|
-
RubyLint::
|
451
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash::MIN_SIZE') do |klass|
|
452
452
|
end
|
453
453
|
|
454
454
|
##
|
@@ -456,8 +456,8 @@ end
|
|
456
456
|
# Created: 2013-04-01 18:33:54 +0200
|
457
457
|
# Platform: rbx 2.0.0.rc1
|
458
458
|
#
|
459
|
-
RubyLint::
|
460
|
-
klass.inherits(RubyLint::
|
459
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash::SortedElement') do |klass|
|
460
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
461
461
|
|
462
462
|
klass.define_method('__class_init__')
|
463
463
|
|
@@ -480,8 +480,8 @@ end
|
|
480
480
|
# Created: 2013-04-01 18:33:54 +0200
|
481
481
|
# Platform: rbx 2.0.0.rc1
|
482
482
|
#
|
483
|
-
RubyLint::
|
484
|
-
klass.inherits(RubyLint::
|
483
|
+
RubyLint::GlobalScope.definitions.define_constant('Hash::State') do |klass|
|
484
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
485
485
|
|
486
486
|
klass.define_method('__class_init__')
|
487
487
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('ImmediateValue') do |klass|
|
7
7
|
|
8
8
|
klass.define_method('__module_init__')
|
9
9
|
|
@@ -3,6 +3,6 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('IndexError') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('StandardError'))
|
8
8
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Integer') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Numeric'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Interrupt') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('SignalException'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('IO') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -458,7 +458,7 @@ end
|
|
458
458
|
# Created: 2013-04-01 18:33:54 +0200
|
459
459
|
# Platform: rbx 2.0.0.rc1
|
460
460
|
#
|
461
|
-
RubyLint::
|
461
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::APPEND') do |klass|
|
462
462
|
end
|
463
463
|
|
464
464
|
##
|
@@ -466,7 +466,7 @@ end
|
|
466
466
|
# Created: 2013-04-01 18:33:54 +0200
|
467
467
|
# Platform: rbx 2.0.0.rc1
|
468
468
|
#
|
469
|
-
RubyLint::
|
469
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::BINARY') do |klass|
|
470
470
|
end
|
471
471
|
|
472
472
|
##
|
@@ -474,8 +474,8 @@ end
|
|
474
474
|
# Created: 2013-04-01 18:33:54 +0200
|
475
475
|
# Platform: rbx 2.0.0.rc1
|
476
476
|
#
|
477
|
-
RubyLint::
|
478
|
-
klass.inherits(RubyLint::
|
477
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::BidirectionalPipe') do |klass|
|
478
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('IO'))
|
479
479
|
|
480
480
|
klass.define_method('__class_init__')
|
481
481
|
|
@@ -530,7 +530,7 @@ end
|
|
530
530
|
# Created: 2013-04-01 18:33:54 +0200
|
531
531
|
# Platform: rbx 2.0.0.rc1
|
532
532
|
#
|
533
|
-
RubyLint::
|
533
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::CREAT') do |klass|
|
534
534
|
end
|
535
535
|
|
536
536
|
##
|
@@ -538,8 +538,8 @@ end
|
|
538
538
|
# Created: 2013-04-01 18:33:54 +0200
|
539
539
|
# Platform: rbx 2.0.0.rc1
|
540
540
|
#
|
541
|
-
RubyLint::
|
542
|
-
klass.inherits(RubyLint::
|
541
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EAGAINWaitReadable') do |klass|
|
542
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Errno::EAGAIN'))
|
543
543
|
|
544
544
|
klass.define_method('__class_init__')
|
545
545
|
end
|
@@ -549,7 +549,7 @@ end
|
|
549
549
|
# Created: 2013-04-01 18:33:54 +0200
|
550
550
|
# Platform: rbx 2.0.0.rc1
|
551
551
|
#
|
552
|
-
RubyLint::
|
552
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EAGAINWaitReadable::Errno') do |klass|
|
553
553
|
end
|
554
554
|
|
555
555
|
##
|
@@ -557,7 +557,7 @@ end
|
|
557
557
|
# Created: 2013-04-01 18:33:54 +0200
|
558
558
|
# Platform: rbx 2.0.0.rc1
|
559
559
|
#
|
560
|
-
RubyLint::
|
560
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EAGAINWaitReadable::Strerror') do |klass|
|
561
561
|
end
|
562
562
|
|
563
563
|
##
|
@@ -565,8 +565,8 @@ end
|
|
565
565
|
# Created: 2013-04-01 18:33:54 +0200
|
566
566
|
# Platform: rbx 2.0.0.rc1
|
567
567
|
#
|
568
|
-
RubyLint::
|
569
|
-
klass.inherits(RubyLint::
|
568
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EAGAINWaitWritable') do |klass|
|
569
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Errno::EAGAIN'))
|
570
570
|
|
571
571
|
klass.define_method('__class_init__')
|
572
572
|
end
|
@@ -576,7 +576,7 @@ end
|
|
576
576
|
# Created: 2013-04-01 18:33:54 +0200
|
577
577
|
# Platform: rbx 2.0.0.rc1
|
578
578
|
#
|
579
|
-
RubyLint::
|
579
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EAGAINWaitWritable::Errno') do |klass|
|
580
580
|
end
|
581
581
|
|
582
582
|
##
|
@@ -584,7 +584,7 @@ end
|
|
584
584
|
# Created: 2013-04-01 18:33:54 +0200
|
585
585
|
# Platform: rbx 2.0.0.rc1
|
586
586
|
#
|
587
|
-
RubyLint::
|
587
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EAGAINWaitWritable::Strerror') do |klass|
|
588
588
|
end
|
589
589
|
|
590
590
|
##
|
@@ -592,7 +592,7 @@ end
|
|
592
592
|
# Created: 2013-04-01 18:33:54 +0200
|
593
593
|
# Platform: rbx 2.0.0.rc1
|
594
594
|
#
|
595
|
-
RubyLint::
|
595
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EXCL') do |klass|
|
596
596
|
end
|
597
597
|
|
598
598
|
##
|
@@ -600,8 +600,8 @@ end
|
|
600
600
|
# Created: 2013-04-01 18:33:54 +0200
|
601
601
|
# Platform: rbx 2.0.0.rc1
|
602
602
|
#
|
603
|
-
RubyLint::
|
604
|
-
klass.inherits(RubyLint::
|
603
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::EachReader') do |klass|
|
604
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
605
605
|
|
606
606
|
klass.define_method('__class_init__')
|
607
607
|
|
@@ -630,7 +630,7 @@ end
|
|
630
630
|
# Created: 2013-04-01 18:33:54 +0200
|
631
631
|
# Platform: rbx 2.0.0.rc1
|
632
632
|
#
|
633
|
-
RubyLint::
|
633
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::FFI') do |klass|
|
634
634
|
|
635
635
|
klass.define_method('__module_init__')
|
636
636
|
|
@@ -681,7 +681,7 @@ end
|
|
681
681
|
# Created: 2013-04-01 18:33:54 +0200
|
682
682
|
# Platform: rbx 2.0.0.rc1
|
683
683
|
#
|
684
|
-
RubyLint::
|
684
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::F_GETFL') do |klass|
|
685
685
|
end
|
686
686
|
|
687
687
|
##
|
@@ -689,8 +689,8 @@ end
|
|
689
689
|
# Created: 2013-04-01 18:33:54 +0200
|
690
690
|
# Platform: rbx 2.0.0.rc1
|
691
691
|
#
|
692
|
-
RubyLint::
|
693
|
-
klass.inherits(RubyLint::
|
692
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::InternalBuffer') do |klass|
|
693
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
694
694
|
|
695
695
|
klass.define_method('__class_init__')
|
696
696
|
|
@@ -773,7 +773,7 @@ end
|
|
773
773
|
# Created: 2013-04-01 18:33:54 +0200
|
774
774
|
# Platform: rbx 2.0.0.rc1
|
775
775
|
#
|
776
|
-
RubyLint::
|
776
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::LOCK_UN') do |klass|
|
777
777
|
end
|
778
778
|
|
779
779
|
##
|
@@ -781,7 +781,7 @@ end
|
|
781
781
|
# Created: 2013-04-01 18:33:54 +0200
|
782
782
|
# Platform: rbx 2.0.0.rc1
|
783
783
|
#
|
784
|
-
RubyLint::
|
784
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::NOCTTY') do |klass|
|
785
785
|
end
|
786
786
|
|
787
787
|
##
|
@@ -789,7 +789,7 @@ end
|
|
789
789
|
# Created: 2013-04-01 18:33:54 +0200
|
790
790
|
# Platform: rbx 2.0.0.rc1
|
791
791
|
#
|
792
|
-
RubyLint::
|
792
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::NONBLOCK') do |klass|
|
793
793
|
end
|
794
794
|
|
795
795
|
##
|
@@ -797,7 +797,7 @@ end
|
|
797
797
|
# Created: 2013-04-01 18:33:54 +0200
|
798
798
|
# Platform: rbx 2.0.0.rc1
|
799
799
|
#
|
800
|
-
RubyLint::
|
800
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::NULL') do |klass|
|
801
801
|
end
|
802
802
|
|
803
803
|
##
|
@@ -805,7 +805,7 @@ end
|
|
805
805
|
# Created: 2013-04-01 18:33:54 +0200
|
806
806
|
# Platform: rbx 2.0.0.rc1
|
807
807
|
#
|
808
|
-
RubyLint::
|
808
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::SEEK_CUR') do |klass|
|
809
809
|
end
|
810
810
|
|
811
811
|
##
|
@@ -813,7 +813,7 @@ end
|
|
813
813
|
# Created: 2013-04-01 18:33:54 +0200
|
814
814
|
# Platform: rbx 2.0.0.rc1
|
815
815
|
#
|
816
|
-
RubyLint::
|
816
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::SEEK_END') do |klass|
|
817
817
|
end
|
818
818
|
|
819
819
|
##
|
@@ -821,7 +821,7 @@ end
|
|
821
821
|
# Created: 2013-04-01 18:33:54 +0200
|
822
822
|
# Platform: rbx 2.0.0.rc1
|
823
823
|
#
|
824
|
-
RubyLint::
|
824
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::SYNC') do |klass|
|
825
825
|
end
|
826
826
|
|
827
827
|
##
|
@@ -829,7 +829,7 @@ end
|
|
829
829
|
# Created: 2013-04-01 18:33:54 +0200
|
830
830
|
# Platform: rbx 2.0.0.rc1
|
831
831
|
#
|
832
|
-
RubyLint::
|
832
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::Socketable') do |klass|
|
833
833
|
|
834
834
|
klass.define_method('__module_init__')
|
835
835
|
|
@@ -841,8 +841,8 @@ end
|
|
841
841
|
# Created: 2013-04-01 18:33:54 +0200
|
842
842
|
# Platform: rbx 2.0.0.rc1
|
843
843
|
#
|
844
|
-
RubyLint::
|
845
|
-
klass.inherits(RubyLint::
|
844
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::SortedElement') do |klass|
|
845
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
846
846
|
|
847
847
|
klass.define_method('__class_init__')
|
848
848
|
|
@@ -865,8 +865,8 @@ end
|
|
865
865
|
# Created: 2013-04-01 18:33:54 +0200
|
866
866
|
# Platform: rbx 2.0.0.rc1
|
867
867
|
#
|
868
|
-
RubyLint::
|
869
|
-
klass.inherits(RubyLint::
|
868
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::StreamCopier') do |klass|
|
869
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
870
870
|
|
871
871
|
klass.define_method('__class_init__')
|
872
872
|
|
@@ -894,7 +894,7 @@ end
|
|
894
894
|
# Created: 2013-04-01 18:33:54 +0200
|
895
895
|
# Platform: rbx 2.0.0.rc1
|
896
896
|
#
|
897
|
-
RubyLint::
|
897
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::TRUNC') do |klass|
|
898
898
|
end
|
899
899
|
|
900
900
|
##
|
@@ -902,7 +902,7 @@ end
|
|
902
902
|
# Created: 2013-04-01 18:33:54 +0200
|
903
903
|
# Platform: rbx 2.0.0.rc1
|
904
904
|
#
|
905
|
-
RubyLint::
|
905
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::TransferIO') do |klass|
|
906
906
|
|
907
907
|
klass.define_method('__module_init__')
|
908
908
|
|
@@ -916,7 +916,7 @@ end
|
|
916
916
|
# Created: 2013-04-01 18:33:54 +0200
|
917
917
|
# Platform: rbx 2.0.0.rc1
|
918
918
|
#
|
919
|
-
RubyLint::
|
919
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::WaitReadable') do |klass|
|
920
920
|
end
|
921
921
|
|
922
922
|
##
|
@@ -924,5 +924,5 @@ end
|
|
924
924
|
# Created: 2013-04-01 18:33:54 +0200
|
925
925
|
# Platform: rbx 2.0.0.rc1
|
926
926
|
#
|
927
|
-
RubyLint::
|
927
|
+
RubyLint::GlobalScope.definitions.define_constant('IO::WaitWritable') do |klass|
|
928
928
|
end
|
@@ -3,6 +3,6 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('IOError') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('StandardError'))
|
8
8
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Kernel') do |klass|
|
7
7
|
|
8
8
|
klass.define_method('Array') do |method|
|
9
9
|
method.define_argument('obj')
|
@@ -58,6 +58,43 @@ RubyLint::VirtualMachine.global_scope.define_constant('Kernel') do |klass|
|
|
58
58
|
method.define_block_argument('block')
|
59
59
|
end
|
60
60
|
|
61
|
+
# ---
|
62
|
+
|
63
|
+
# These methods aren't actually defined in Kernel (but in Module, at least on
|
64
|
+
# MRI) but since they are available as both class and instance methods they
|
65
|
+
# have been added to this module (since it's available in both contexts).
|
66
|
+
['alias', 'alias_method'].each do |name|
|
67
|
+
klass.define_method(name) do |method|
|
68
|
+
method.define_argument('name')
|
69
|
+
method.define_argument('original')
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
klass.define_method('class_variable_defined?') do |method|
|
74
|
+
method.define_argument('sym')
|
75
|
+
end
|
76
|
+
|
77
|
+
klass.define_method('class_variable_get') do |method|
|
78
|
+
method.define_argument('sym')
|
79
|
+
end
|
80
|
+
|
81
|
+
klass.define_method('class_variable_set') do |method|
|
82
|
+
method.define_argument('sym')
|
83
|
+
method.define_argument('val')
|
84
|
+
end
|
85
|
+
|
86
|
+
klass.define_method('const_defined?') do |method|
|
87
|
+
method.define_argument('name')
|
88
|
+
method.define_optional_argument('search_parents')
|
89
|
+
end
|
90
|
+
|
91
|
+
klass.define_method('const_set') do |method|
|
92
|
+
method.define_argument('name')
|
93
|
+
method.define_argument('value')
|
94
|
+
end
|
95
|
+
|
96
|
+
# ---
|
97
|
+
|
61
98
|
klass.define_method('binding')
|
62
99
|
|
63
100
|
klass.define_method('block_given?')
|
@@ -297,208 +334,224 @@ RubyLint::VirtualMachine.global_scope.define_constant('Kernel') do |klass|
|
|
297
334
|
method.define_argument('message')
|
298
335
|
end
|
299
336
|
|
300
|
-
klass.
|
337
|
+
klass.define_method('!~') do |method|
|
301
338
|
method.define_argument('other')
|
302
339
|
end
|
303
340
|
|
304
|
-
klass.
|
341
|
+
klass.define_method('<=>') do |method|
|
305
342
|
method.define_argument('other')
|
306
343
|
end
|
307
344
|
|
308
|
-
klass.
|
345
|
+
klass.define_method('==') do |method|
|
309
346
|
method.define_argument('other')
|
310
347
|
end
|
311
348
|
|
312
|
-
klass.
|
349
|
+
klass.define_method('===') do |method|
|
313
350
|
method.define_argument('other')
|
314
351
|
end
|
315
352
|
|
316
|
-
klass.
|
353
|
+
klass.define_method('=~') do |method|
|
317
354
|
method.define_argument('other')
|
318
355
|
end
|
319
356
|
|
320
|
-
klass.
|
357
|
+
klass.define_method('__class__')
|
321
358
|
|
322
|
-
klass.
|
359
|
+
klass.define_method('__extend__') do |method|
|
323
360
|
method.define_rest_argument('modules')
|
324
361
|
end
|
325
362
|
|
326
|
-
klass.
|
363
|
+
klass.define_method('__instance_variable_defined_p__') do |method|
|
327
364
|
method.define_argument('name')
|
328
365
|
end
|
329
366
|
|
330
|
-
klass.
|
367
|
+
klass.define_method('__instance_variable_get__') do |method|
|
331
368
|
method.define_argument('sym')
|
332
369
|
end
|
333
370
|
|
334
|
-
klass.
|
371
|
+
klass.define_method('__instance_variable_set__') do |method|
|
335
372
|
method.define_argument('sym')
|
336
373
|
method.define_argument('value')
|
337
374
|
end
|
338
375
|
|
339
|
-
klass.
|
376
|
+
klass.define_method('__instance_variables__')
|
340
377
|
|
341
|
-
klass.
|
378
|
+
klass.define_method('__respond_to_p__') do |method|
|
342
379
|
method.define_argument('meth')
|
343
380
|
method.define_optional_argument('include_private')
|
344
381
|
end
|
345
382
|
|
346
|
-
klass.
|
383
|
+
klass.define_method('class')
|
347
384
|
|
348
|
-
klass.
|
385
|
+
klass.define_method('clone')
|
349
386
|
|
350
|
-
klass.
|
387
|
+
klass.define_method('define_singleton_method') do |method|
|
351
388
|
method.define_rest_argument('args')
|
352
389
|
method.define_block_argument('block')
|
353
390
|
end
|
354
391
|
|
355
|
-
klass.
|
392
|
+
klass.define_method('display') do |method|
|
356
393
|
method.define_optional_argument('port')
|
357
394
|
end
|
358
395
|
|
359
|
-
klass.
|
396
|
+
klass.define_method('dup')
|
360
397
|
|
361
|
-
klass.
|
398
|
+
klass.define_method('enum_for') do |method|
|
362
399
|
method.define_optional_argument('method')
|
363
400
|
method.define_rest_argument('args')
|
364
401
|
end
|
365
402
|
|
366
|
-
klass.
|
403
|
+
klass.define_method('eql?') do |method|
|
367
404
|
method.define_argument('other')
|
368
405
|
end
|
369
406
|
|
370
|
-
klass.
|
407
|
+
klass.define_method('equal?') do |method|
|
371
408
|
method.define_argument('other')
|
372
409
|
end
|
373
410
|
|
374
|
-
klass.
|
411
|
+
klass.define_method('extend') do |method|
|
375
412
|
method.define_rest_argument('modules')
|
376
413
|
end
|
377
414
|
|
378
|
-
klass.
|
415
|
+
klass.define_method('freeze')
|
416
|
+
|
417
|
+
klass.define_method('frozen?')
|
379
418
|
|
380
|
-
klass.
|
419
|
+
klass.define_method('hash')
|
381
420
|
|
382
|
-
klass.
|
421
|
+
klass.define_method('include') do |method|
|
422
|
+
method.define_rest_argument('mods')
|
423
|
+
end
|
383
424
|
|
384
|
-
klass.
|
425
|
+
klass.define_method('initialize_clone') do |method|
|
385
426
|
method.define_argument('other')
|
386
427
|
end
|
387
428
|
|
388
|
-
klass.
|
429
|
+
klass.define_method('initialize_dup') do |method|
|
389
430
|
method.define_argument('other')
|
390
431
|
end
|
391
432
|
|
392
|
-
klass.
|
433
|
+
klass.define_method('inspect')
|
393
434
|
|
394
|
-
klass.
|
435
|
+
klass.define_method('instance_of?') do |method|
|
395
436
|
method.define_argument('cls')
|
396
437
|
end
|
397
438
|
|
398
|
-
klass.
|
439
|
+
klass.define_method('instance_variable_defined?') do |method|
|
399
440
|
method.define_argument('name')
|
400
441
|
end
|
401
442
|
|
402
|
-
klass.
|
443
|
+
klass.define_method('instance_variable_get') do |method|
|
403
444
|
method.define_argument('sym')
|
404
445
|
end
|
405
446
|
|
406
|
-
klass.
|
447
|
+
klass.define_method('instance_variable_set') do |method|
|
407
448
|
method.define_argument('sym')
|
408
449
|
method.define_argument('value')
|
409
450
|
end
|
410
451
|
|
411
|
-
klass.
|
452
|
+
klass.define_method('instance_variables')
|
412
453
|
|
413
|
-
klass.
|
454
|
+
klass.define_method('is_a?') do |method|
|
414
455
|
method.define_argument('cls')
|
415
456
|
end
|
416
457
|
|
417
|
-
klass.
|
458
|
+
klass.define_method('kind_of?') do |method|
|
418
459
|
method.define_argument('cls')
|
419
460
|
end
|
420
461
|
|
421
|
-
klass.
|
462
|
+
klass.define_method('method') do |method|
|
422
463
|
method.define_argument('name')
|
423
464
|
end
|
424
465
|
|
425
|
-
klass.
|
466
|
+
klass.define_method('methods') do |method|
|
426
467
|
method.define_optional_argument('all')
|
427
468
|
end
|
428
469
|
|
429
|
-
klass.
|
470
|
+
klass.define_method('nil?')
|
471
|
+
|
472
|
+
klass.define_method('object_id')
|
473
|
+
|
474
|
+
klass.define_method('private') do |method|
|
475
|
+
method.define_rest_argument('methods')
|
476
|
+
end
|
430
477
|
|
431
|
-
klass.
|
478
|
+
klass.define_method('public') do |method|
|
479
|
+
method.define_rest_argument('methods')
|
480
|
+
end
|
481
|
+
|
482
|
+
klass.define_method('protected') do |method|
|
483
|
+
method.define_rest_argument('methods')
|
484
|
+
end
|
432
485
|
|
433
|
-
klass.
|
486
|
+
klass.define_method('private_methods') do |method|
|
434
487
|
method.define_optional_argument('all')
|
435
488
|
end
|
436
489
|
|
437
|
-
klass.
|
490
|
+
klass.define_method('protected_methods') do |method|
|
438
491
|
method.define_optional_argument('all')
|
439
492
|
end
|
440
493
|
|
441
|
-
klass.
|
494
|
+
klass.define_method('public_method') do |method|
|
442
495
|
method.define_argument('name')
|
443
496
|
end
|
444
497
|
|
445
|
-
klass.
|
498
|
+
klass.define_method('public_methods') do |method|
|
446
499
|
method.define_optional_argument('all')
|
447
500
|
end
|
448
501
|
|
449
|
-
klass.
|
502
|
+
klass.define_method('public_send') do |method|
|
450
503
|
method.define_argument('message')
|
451
504
|
method.define_rest_argument('args')
|
452
505
|
end
|
453
506
|
|
454
|
-
klass.
|
507
|
+
klass.define_method('respond_to?') do |method|
|
455
508
|
method.define_argument('meth')
|
456
509
|
method.define_optional_argument('include_private')
|
457
510
|
end
|
458
511
|
|
459
|
-
klass.
|
512
|
+
klass.define_method('respond_to_missing?') do |method|
|
460
513
|
method.define_argument('meth')
|
461
514
|
method.define_argument('include')
|
462
515
|
end
|
463
516
|
|
464
|
-
klass.
|
517
|
+
klass.define_method('send') do |method|
|
465
518
|
method.define_argument('message')
|
466
519
|
method.define_rest_argument('args')
|
467
520
|
end
|
468
521
|
|
469
|
-
klass.
|
522
|
+
klass.define_method('singleton_class')
|
470
523
|
|
471
|
-
klass.
|
524
|
+
klass.define_method('singleton_methods') do |method|
|
472
525
|
method.define_optional_argument('all')
|
473
526
|
end
|
474
527
|
|
475
|
-
klass.
|
528
|
+
klass.define_method('taint')
|
476
529
|
|
477
|
-
klass.
|
530
|
+
klass.define_method('tainted?')
|
478
531
|
|
479
|
-
klass.
|
532
|
+
klass.define_method('tap')
|
480
533
|
|
481
|
-
klass.
|
534
|
+
klass.define_method('to_enum') do |method|
|
482
535
|
method.define_optional_argument('method')
|
483
536
|
method.define_rest_argument('args')
|
484
537
|
end
|
485
538
|
|
486
|
-
klass.
|
539
|
+
klass.define_method('to_s')
|
487
540
|
|
488
|
-
klass.
|
541
|
+
klass.define_method('trust')
|
489
542
|
|
490
|
-
klass.
|
543
|
+
klass.define_method('untaint')
|
491
544
|
|
492
|
-
klass.
|
545
|
+
klass.define_method('untrust')
|
493
546
|
|
494
|
-
klass.
|
547
|
+
klass.define_method('untrusted?')
|
495
548
|
end
|
496
549
|
|
497
550
|
# Methods defined in Kernel (both class and instance methods) are globally
|
498
551
|
# available regardless of whether the code is evaluated in a class or instance
|
499
552
|
# context.
|
500
|
-
RubyLint::
|
501
|
-
RubyLint::
|
553
|
+
RubyLint::GlobalScope.definitions.copy(
|
554
|
+
RubyLint::GlobalScope.global_constant('Kernel'),
|
502
555
|
:method,
|
503
556
|
:instance_method
|
504
557
|
)
|