ruby-lint 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.asc +17 -0
- data/.gitignore +1 -0
- data/.travis.yml +25 -0
- data/.yardopts +4 -0
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/MANIFEST +238 -49
- data/README.md +84 -131
- data/Rakefile +6 -0
- data/bin/ruby-lint +2 -2
- data/checksum/.gitkeep +0 -0
- data/doc/DCO.md +26 -0
- data/doc/architecture.md +63 -0
- data/doc/code_analysis.md +90 -0
- data/doc/configuration.md +86 -0
- data/doc/contributing.md +16 -0
- data/doc/graphviz/flow.dot +7 -0
- data/doc/images/.gitkeep +0 -0
- data/doc/images/flow.png +0 -0
- data/lib/ruby-lint.rb +35 -35
- data/lib/ruby-lint/analyze/argument_amount.rb +73 -0
- data/lib/ruby-lint/analyze/shadowing_variables.rb +19 -24
- data/lib/ruby-lint/analyze/undefined_methods.rb +68 -0
- data/lib/ruby-lint/analyze/undefined_variables.rb +42 -69
- data/lib/ruby-lint/analyze/unused_variables.rb +23 -78
- data/lib/ruby-lint/base.rb +85 -0
- data/lib/ruby-lint/cli.rb +23 -167
- data/lib/ruby-lint/cli/analyze.rb +99 -0
- data/lib/ruby-lint/cli/ast.rb +35 -0
- data/lib/ruby-lint/cli/base.rb +120 -0
- data/lib/ruby-lint/configuration.rb +112 -0
- data/lib/ruby-lint/constant_loader.rb +92 -0
- data/lib/ruby-lint/definition/ruby_method.rb +248 -0
- data/lib/ruby-lint/definition/ruby_object.rb +757 -0
- data/lib/ruby-lint/definition_generator.rb +155 -0
- data/lib/ruby-lint/definitions/core.rb +5 -0
- data/lib/ruby-lint/definitions/core/arg0.rb +7 -0
- data/lib/ruby-lint/definitions/core/argf.rb +7 -0
- data/lib/ruby-lint/definitions/core/argument_error.rb +12 -0
- data/lib/ruby-lint/definitions/core/argv.rb +7 -0
- data/lib/ruby-lint/definitions/core/array.rb +414 -0
- data/lib/ruby-lint/definitions/core/autoload.rb +39 -0
- data/lib/ruby-lint/definitions/core/basic_object.rb +46 -0
- data/lib/ruby-lint/definitions/core/bignum.rb +128 -0
- data/lib/ruby-lint/definitions/core/binding.rb +52 -0
- data/lib/ruby-lint/definitions/core/class.rb +23 -0
- data/lib/ruby-lint/definitions/core/comparable.rb +38 -0
- data/lib/ruby-lint/definitions/core/complex.rb +195 -0
- data/lib/ruby-lint/definitions/core/condition_variable.rb +19 -0
- data/lib/ruby-lint/definitions/core/continuation.rb +8 -0
- data/lib/ruby-lint/definitions/core/data.rb +8 -0
- data/lib/ruby-lint/definitions/core/date.rb +706 -0
- data/lib/ruby-lint/definitions/core/date_time.rb +381 -0
- data/lib/ruby-lint/definitions/core/default_record_separator.rb +7 -0
- data/lib/ruby-lint/definitions/core/digest.rb +166 -0
- data/lib/ruby-lint/definitions/core/dir.rb +496 -0
- data/lib/ruby-lint/definitions/core/encoding.rb +2030 -0
- data/lib/ruby-lint/definitions/core/encoding_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/enumerable.rb +352 -0
- data/lib/ruby-lint/definitions/core/enumerator.rb +37 -0
- data/lib/ruby-lint/definitions/core/env.rb +7 -0
- data/lib/ruby-lint/definitions/core/eoferror.rb +8 -0
- data/lib/ruby-lint/definitions/core/erb.rb +304 -0
- data/lib/ruby-lint/definitions/core/errno.rb +3331 -0
- data/lib/ruby-lint/definitions/core/etc.rb +138 -0
- data/lib/ruby-lint/definitions/core/exception.rb +72 -0
- data/lib/ruby-lint/definitions/core/false.rb +7 -0
- data/lib/ruby-lint/definitions/core/false_class.rb +30 -0
- data/lib/ruby-lint/definitions/core/fatal_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/fiber.rb +35 -0
- data/lib/ruby-lint/definitions/core/fiber_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/file.rb +1277 -0
- data/lib/ruby-lint/definitions/core/file_list.rb +727 -0
- data/lib/ruby-lint/definitions/core/file_test.rb +106 -0
- data/lib/ruby-lint/definitions/core/file_utils.rb +1027 -0
- data/lib/ruby-lint/definitions/core/fixnum.rb +156 -0
- data/lib/ruby-lint/definitions/core/float.rb +307 -0
- data/lib/ruby-lint/definitions/core/float_domain_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/gc.rb +57 -0
- data/lib/ruby-lint/definitions/core/gem.rb +3161 -0
- data/lib/ruby-lint/definitions/core/hash.rb +512 -0
- data/lib/ruby-lint/definitions/core/immediate_value.rb +19 -0
- data/lib/ruby-lint/definitions/core/index_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/integer.rb +100 -0
- data/lib/ruby-lint/definitions/core/interrupt.rb +14 -0
- data/lib/ruby-lint/definitions/core/io.rb +928 -0
- data/lib/ruby-lint/definitions/core/ioerror.rb +8 -0
- data/lib/ruby-lint/definitions/core/kernel.rb +504 -0
- data/lib/ruby-lint/definitions/core/key_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/load_error.rb +28 -0
- data/lib/ruby-lint/definitions/core/local_jump_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/main.rb +25 -0
- data/lib/ruby-lint/definitions/core/marshal.rb +466 -0
- data/lib/ruby-lint/definitions/core/match_data.rb +73 -0
- data/lib/ruby-lint/definitions/core/math.rb +205 -0
- data/lib/ruby-lint/definitions/core/memory_segmention_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/method.rb +61 -0
- data/lib/ruby-lint/definitions/core/module.rb +262 -0
- data/lib/ruby-lint/definitions/core/monitor.rb +39 -0
- data/lib/ruby-lint/definitions/core/monitor_mixin.rb +59 -0
- data/lib/ruby-lint/definitions/core/mutex.rb +32 -0
- data/lib/ruby-lint/definitions/core/name_error.rb +16 -0
- data/lib/ruby-lint/definitions/core/nil.rb +7 -0
- data/lib/ruby-lint/definitions/core/nil_class.rb +46 -0
- data/lib/ruby-lint/definitions/core/no_memory_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/no_method_error.rb +18 -0
- data/lib/ruby-lint/definitions/core/not_implemented_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/numeric.rb +123 -0
- data/lib/ruby-lint/definitions/core/object.rb +31 -0
- data/lib/ruby-lint/definitions/core/object_space.rb +41 -0
- data/lib/ruby-lint/definitions/core/open_struct.rb +49 -0
- data/lib/ruby-lint/definitions/core/option_parser.rb +1355 -0
- data/lib/ruby-lint/definitions/core/precision.rb +21 -0
- data/lib/ruby-lint/definitions/core/primitive_failure.rb +8 -0
- data/lib/ruby-lint/definitions/core/proc.rb +109 -0
- data/lib/ruby-lint/definitions/core/process.rb +602 -0
- data/lib/ruby-lint/definitions/core/psych.rb +2231 -0
- data/lib/ruby-lint/definitions/core/queue.rb +44 -0
- data/lib/ruby-lint/definitions/core/rake.rb +4784 -0
- data/lib/ruby-lint/definitions/core/rake_file_utils.rb +203 -0
- data/lib/ruby-lint/definitions/core/rakeversion.rb +7 -0
- data/lib/ruby-lint/definitions/core/random.rb +38 -0
- data/lib/ruby-lint/definitions/core/range.rb +104 -0
- data/lib/ruby-lint/definitions/core/range_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/rational.rb +96 -0
- data/lib/ruby-lint/definitions/core/rb_config.rb +36 -0
- data/lib/ruby-lint/definitions/core/regexp.rb +396 -0
- data/lib/ruby-lint/definitions/core/regexp_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/rubinius.rb +16637 -0
- data/lib/ruby-lint/definitions/core/ruby_copyright.rb +7 -0
- data/lib/ruby-lint/definitions/core/ruby_description.rb +7 -0
- data/lib/ruby-lint/definitions/core/ruby_engine.rb +7 -0
- data/lib/ruby-lint/definitions/core/ruby_lint.rb +93 -0
- data/lib/ruby-lint/definitions/core/ruby_patchlevel.rb +7 -0
- data/lib/ruby-lint/definitions/core/ruby_platform.rb +7 -0
- data/lib/ruby-lint/definitions/core/ruby_release_date.rb +7 -0
- data/lib/ruby-lint/definitions/core/ruby_version.rb +7 -0
- data/lib/ruby-lint/definitions/core/runtime_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/scan_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/script_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/security_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/shellwords.rb +37 -0
- data/lib/ruby-lint/definitions/core/signal.rb +37 -0
- data/lib/ruby-lint/definitions/core/signal_exception.rb +19 -0
- data/lib/ruby-lint/definitions/core/singleton.rb +37 -0
- data/lib/ruby-lint/definitions/core/sized_queue.rb +42 -0
- data/lib/ruby-lint/definitions/core/standard_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/stderr.rb +7 -0
- data/lib/ruby-lint/definitions/core/stdin.rb +7 -0
- data/lib/ruby-lint/definitions/core/stdout.rb +7 -0
- data/lib/ruby-lint/definitions/core/stop_iteration.rb +8 -0
- data/lib/ruby-lint/definitions/core/string.rb +713 -0
- data/lib/ruby-lint/definitions/core/string_io.rb +287 -0
- data/lib/ruby-lint/definitions/core/string_scanner.rb +158 -0
- data/lib/ruby-lint/definitions/core/struct.rb +357 -0
- data/lib/ruby-lint/definitions/core/syck.rb +30 -0
- data/lib/ruby-lint/definitions/core/symbol.rb +90 -0
- data/lib/ruby-lint/definitions/core/syntax_error.rb +44 -0
- data/lib/ruby-lint/definitions/core/system_call_error.rb +31 -0
- data/lib/ruby-lint/definitions/core/system_exit.rb +19 -0
- data/lib/ruby-lint/definitions/core/system_stack_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/thread.rb +209 -0
- data/lib/ruby-lint/definitions/core/thread_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/thread_group.rb +22 -0
- data/lib/ruby-lint/definitions/core/time.rb +233 -0
- data/lib/ruby-lint/definitions/core/toplevel_binding.rb +7 -0
- data/lib/ruby-lint/definitions/core/true.rb +7 -0
- data/lib/ruby-lint/definitions/core/true_class.rb +30 -0
- data/lib/ruby-lint/definitions/core/type_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/unbound_method.rb +51 -0
- data/lib/ruby-lint/definitions/core/unmarshalable.rb +13 -0
- data/lib/ruby-lint/definitions/core/unsupported_library_error.rb +8 -0
- data/lib/ruby-lint/definitions/core/weak_ref.rb +42 -0
- data/lib/ruby-lint/definitions/core/zero_division_error.rb +8 -0
- data/lib/ruby-lint/definitions_builder.rb +692 -0
- data/lib/ruby-lint/extensions/string.rb +15 -0
- data/lib/ruby-lint/helper/constant_paths.rb +41 -0
- data/lib/ruby-lint/helper/conversion.rb +33 -0
- data/lib/ruby-lint/helper/current_scope.rb +98 -0
- data/lib/ruby-lint/helper/methods.rb +91 -0
- data/lib/ruby-lint/inspector.rb +191 -0
- data/lib/ruby-lint/iterator.rb +187 -127
- data/lib/ruby-lint/node.rb +107 -0
- data/lib/ruby-lint/parser.rb +510 -1137
- data/lib/ruby-lint/parser_error.rb +15 -27
- data/lib/ruby-lint/presenter/json.rb +19 -0
- data/lib/ruby-lint/presenter/text.rb +37 -0
- data/lib/ruby-lint/report.rb +95 -53
- data/lib/ruby-lint/report/entry.rb +71 -0
- data/lib/ruby-lint/template/definition.erb +24 -0
- data/lib/ruby-lint/template/scope.rb +25 -0
- data/lib/ruby-lint/variable_predicates.rb +109 -0
- data/lib/ruby-lint/version.rb +1 -1
- data/ruby-lint.gemspec +19 -8
- data/spec/helper.rb +10 -2
- data/spec/ruby-lint/analyze/argument_amount.rb +91 -0
- data/spec/ruby-lint/analyze/shadowing_variables.rb +69 -14
- data/spec/ruby-lint/analyze/undefined_methods.rb +174 -0
- data/spec/ruby-lint/analyze/undefined_variables.rb +70 -179
- data/spec/ruby-lint/analyze/unused_variables.rb +63 -183
- data/spec/ruby-lint/configuration.rb +15 -0
- data/spec/ruby-lint/constant_loader.rb +32 -0
- data/spec/ruby-lint/definition/dsl.rb +142 -0
- data/spec/ruby-lint/definition/method_calls.rb +26 -0
- data/spec/ruby-lint/definition/ruby_method.rb +175 -0
- data/spec/ruby-lint/definition/ruby_object.rb +228 -0
- data/spec/ruby-lint/definitions_builder/assignments/arrays.rb +71 -0
- data/spec/ruby-lint/definitions_builder/assignments/hashes.rb +65 -0
- data/spec/ruby-lint/definitions_builder/assignments/objects.rb +23 -0
- data/spec/ruby-lint/definitions_builder/assignments/optional.rb +22 -0
- data/spec/ruby-lint/definitions_builder/assignments/return_values.rb +78 -0
- data/spec/ruby-lint/definitions_builder/assignments/variables.rb +71 -0
- data/spec/ruby-lint/definitions_builder/associate_nodes.rb +17 -0
- data/spec/ruby-lint/definitions_builder/blocks.rb +40 -0
- data/spec/ruby-lint/definitions_builder/classes.rb +230 -0
- data/spec/ruby-lint/definitions_builder/for.rb +16 -0
- data/spec/ruby-lint/definitions_builder/methods.rb +147 -0
- data/spec/ruby-lint/definitions_builder/modules.rb +175 -0
- data/spec/ruby-lint/definitions_builder/reference_amount.rb +31 -0
- data/spec/ruby-lint/definitions_builder/unused.rb +15 -0
- data/spec/ruby-lint/extensions/string.rb +7 -0
- data/spec/ruby-lint/iterator.rb +42 -417
- data/spec/ruby-lint/node.rb +38 -0
- data/spec/ruby-lint/parser/assignments.rb +225 -0
- data/spec/ruby-lint/parser/classes.rb +80 -122
- data/spec/ruby-lint/parser/errors.rb +7 -14
- data/spec/ruby-lint/parser/metadata.rb +17 -0
- data/spec/ruby-lint/parser/method_definitions.rb +111 -0
- data/spec/ruby-lint/parser/methods.rb +184 -216
- data/spec/ruby-lint/parser/modules.rb +54 -33
- data/spec/ruby-lint/parser/operators.rb +30 -65
- data/spec/ruby-lint/parser/statements/begin.rb +55 -0
- data/spec/ruby-lint/parser/statements/case.rb +34 -0
- data/spec/ruby-lint/parser/statements/defined.rb +11 -0
- data/spec/ruby-lint/parser/statements/for.rb +34 -0
- data/spec/ruby-lint/parser/statements/if.rb +46 -0
- data/spec/ruby-lint/parser/statements/return.rb +14 -0
- data/spec/ruby-lint/parser/statements/super.rb +49 -0
- data/spec/ruby-lint/parser/statements/unless.rb +42 -0
- data/spec/ruby-lint/parser/statements/until.rb +25 -0
- data/spec/ruby-lint/parser/statements/while.rb +25 -0
- data/spec/ruby-lint/parser/statements/yield.rb +18 -0
- data/spec/ruby-lint/parser/types/arrays.rb +47 -0
- data/spec/ruby-lint/parser/types/booleans.rb +11 -0
- data/spec/ruby-lint/parser/types/constants.rb +32 -0
- data/spec/ruby-lint/parser/types/hashes.rb +55 -0
- data/spec/ruby-lint/parser/types/nil.rb +7 -0
- data/spec/ruby-lint/parser/types/numbers.rb +11 -0
- data/spec/ruby-lint/parser/types/procs.rb +11 -0
- data/spec/ruby-lint/parser/types/ranges.rb +11 -0
- data/spec/ruby-lint/parser/types/regexp.rb +27 -0
- data/spec/ruby-lint/parser/types/strings.rb +44 -0
- data/spec/ruby-lint/parser/types/symbols.rb +15 -0
- data/spec/ruby-lint/presenter/json.rb +31 -0
- data/spec/ruby-lint/presenter/text.rb +22 -0
- data/spec/ruby-lint/report.rb +45 -15
- data/spec/ruby-lint/report/entry.rb +24 -0
- data/spec/support/bacon.rb +33 -0
- data/spec/support/building.rb +43 -0
- data/spec/support/definitions.rb +23 -0
- data/spec/support/parsing.rb +23 -0
- data/spec/support/simplecov.rb +16 -0
- data/task/build.rake +9 -0
- data/task/checksum.rake +13 -0
- data/task/coverage.rake +6 -0
- data/task/doc.rake +5 -0
- data/task/generate.rake +34 -0
- data/task/graphviz.rake +12 -0
- data/task/stdlib.rake +2 -9
- data/task/tag.rake +6 -0
- metadata +337 -68
- metadata.gz.asc +17 -0
- data/.rbenv-version +0 -1
- data/lib/ruby-lint/analyze/coding_style.rb +0 -407
- data/lib/ruby-lint/analyze/definitions.rb +0 -244
- data/lib/ruby-lint/analyze/method_validation.rb +0 -104
- data/lib/ruby-lint/callback.rb +0 -67
- data/lib/ruby-lint/constant_importer.rb +0 -112
- data/lib/ruby-lint/definition.rb +0 -230
- data/lib/ruby-lint/formatter/text.rb +0 -54
- data/lib/ruby-lint/helper/definition_resolver.rb +0 -143
- data/lib/ruby-lint/helper/scoping.rb +0 -138
- data/lib/ruby-lint/options.rb +0 -58
- data/lib/ruby-lint/token/assignment_token.rb +0 -35
- data/lib/ruby-lint/token/begin_rescue_token.rb +0 -57
- data/lib/ruby-lint/token/block_token.rb +0 -26
- data/lib/ruby-lint/token/case_token.rb +0 -44
- data/lib/ruby-lint/token/class_token.rb +0 -24
- data/lib/ruby-lint/token/keyword_token.rb +0 -43
- data/lib/ruby-lint/token/method_definition_token.rb +0 -64
- data/lib/ruby-lint/token/method_token.rb +0 -56
- data/lib/ruby-lint/token/parameters_token.rb +0 -99
- data/lib/ruby-lint/token/regexp_token.rb +0 -15
- data/lib/ruby-lint/token/statement_token.rb +0 -69
- data/lib/ruby-lint/token/token.rb +0 -176
- data/lib/ruby-lint/token/variable_token.rb +0 -18
- data/spec/benchmarks/memory.rb +0 -52
- data/spec/benchmarks/parse_parser.rb +0 -16
- data/spec/fixtures/stdlib/un.rb +0 -348
- data/spec/ruby-lint/analyze/coding_style.rb +0 -224
- data/spec/ruby-lint/analyze/complex/un.rb +0 -29
- data/spec/ruby-lint/analyze/definitions/classes.rb +0 -114
- data/spec/ruby-lint/analyze/definitions/methods.rb +0 -91
- data/spec/ruby-lint/analyze/definitions/modules.rb +0 -207
- data/spec/ruby-lint/analyze/definitions/variables.rb +0 -103
- data/spec/ruby-lint/analyze/method_validation.rb +0 -177
- data/spec/ruby-lint/callback.rb +0 -28
- data/spec/ruby-lint/constant_importer.rb +0 -27
- data/spec/ruby-lint/definition.rb +0 -96
- data/spec/ruby-lint/formatter/text.rb +0 -21
- data/spec/ruby-lint/parser/arrays.rb +0 -147
- data/spec/ruby-lint/parser/expander_assignments.rb +0 -183
- data/spec/ruby-lint/parser/hashes.rb +0 -136
- data/spec/ruby-lint/parser/keywords.rb +0 -89
- data/spec/ruby-lint/parser/objects.rb +0 -39
- data/spec/ruby-lint/parser/procs.rb +0 -113
- data/spec/ruby-lint/parser/ranges.rb +0 -49
- data/spec/ruby-lint/parser/regexp.rb +0 -31
- data/spec/ruby-lint/parser/scalars.rb +0 -93
- data/spec/ruby-lint/parser/statements.rb +0 -591
- data/spec/ruby-lint/parser/variables.rb +0 -230
@@ -0,0 +1,352 @@
|
|
1
|
+
##
|
2
|
+
# Constant: Enumerable
|
3
|
+
# Created: 2013-04-01 18:33:53 +0200
|
4
|
+
# Platform: rbx 2.0.0.rc1
|
5
|
+
#
|
6
|
+
RubyLint.global_scope.define_constant('Enumerable') do |klass|
|
7
|
+
|
8
|
+
klass.define_method('__module_init__')
|
9
|
+
|
10
|
+
klass.define_method('sort_proc')
|
11
|
+
|
12
|
+
klass.define_instance_method('all?')
|
13
|
+
|
14
|
+
klass.define_instance_method('any?')
|
15
|
+
|
16
|
+
klass.define_instance_method('chunk') do |method|
|
17
|
+
method.define_optional_argument('initial_state')
|
18
|
+
method.define_block_argument('original_block')
|
19
|
+
end
|
20
|
+
|
21
|
+
klass.define_instance_method('collect')
|
22
|
+
|
23
|
+
klass.define_instance_method('collect_concat') do |method|
|
24
|
+
method.define_block_argument('block')
|
25
|
+
end
|
26
|
+
|
27
|
+
klass.define_instance_method('count') do |method|
|
28
|
+
method.define_optional_argument('item')
|
29
|
+
end
|
30
|
+
|
31
|
+
klass.define_instance_method('cycle') do |method|
|
32
|
+
method.define_optional_argument('many')
|
33
|
+
end
|
34
|
+
|
35
|
+
klass.define_instance_method('detect') do |method|
|
36
|
+
method.define_optional_argument('ifnone')
|
37
|
+
end
|
38
|
+
|
39
|
+
klass.define_instance_method('drop') do |method|
|
40
|
+
method.define_argument('n')
|
41
|
+
end
|
42
|
+
|
43
|
+
klass.define_instance_method('drop_while')
|
44
|
+
|
45
|
+
klass.define_instance_method('each_cons') do |method|
|
46
|
+
method.define_argument('num')
|
47
|
+
end
|
48
|
+
|
49
|
+
klass.define_instance_method('each_entry') do |method|
|
50
|
+
method.define_rest_argument('pass')
|
51
|
+
end
|
52
|
+
|
53
|
+
klass.define_instance_method('each_slice') do |method|
|
54
|
+
method.define_argument('slice_size')
|
55
|
+
end
|
56
|
+
|
57
|
+
klass.define_instance_method('each_with_index') do |method|
|
58
|
+
method.define_rest_argument('args')
|
59
|
+
end
|
60
|
+
|
61
|
+
klass.define_instance_method('each_with_object') do |method|
|
62
|
+
method.define_argument('memo')
|
63
|
+
end
|
64
|
+
|
65
|
+
klass.define_instance_method('entries') do |method|
|
66
|
+
method.define_rest_argument('arg')
|
67
|
+
end
|
68
|
+
|
69
|
+
klass.define_instance_method('find') do |method|
|
70
|
+
method.define_optional_argument('ifnone')
|
71
|
+
end
|
72
|
+
|
73
|
+
klass.define_instance_method('find_all')
|
74
|
+
|
75
|
+
klass.define_instance_method('find_index') do |method|
|
76
|
+
method.define_optional_argument('value')
|
77
|
+
end
|
78
|
+
|
79
|
+
klass.define_instance_method('first') do |method|
|
80
|
+
method.define_optional_argument('n')
|
81
|
+
end
|
82
|
+
|
83
|
+
klass.define_instance_method('flat_map') do |method|
|
84
|
+
method.define_block_argument('block')
|
85
|
+
end
|
86
|
+
|
87
|
+
klass.define_instance_method('grep') do |method|
|
88
|
+
method.define_argument('pattern')
|
89
|
+
end
|
90
|
+
|
91
|
+
klass.define_instance_method('group_by')
|
92
|
+
|
93
|
+
klass.define_instance_method('include?') do |method|
|
94
|
+
method.define_argument('obj')
|
95
|
+
end
|
96
|
+
|
97
|
+
klass.define_instance_method('inject') do |method|
|
98
|
+
method.define_optional_argument('initial')
|
99
|
+
method.define_optional_argument('sym')
|
100
|
+
method.define_block_argument('block')
|
101
|
+
end
|
102
|
+
|
103
|
+
klass.define_instance_method('map')
|
104
|
+
|
105
|
+
klass.define_instance_method('max')
|
106
|
+
|
107
|
+
klass.define_instance_method('max_by')
|
108
|
+
|
109
|
+
klass.define_instance_method('member?') do |method|
|
110
|
+
method.define_argument('obj')
|
111
|
+
end
|
112
|
+
|
113
|
+
klass.define_instance_method('min')
|
114
|
+
|
115
|
+
klass.define_instance_method('min_by')
|
116
|
+
|
117
|
+
klass.define_instance_method('minmax') do |method|
|
118
|
+
method.define_block_argument('block')
|
119
|
+
end
|
120
|
+
|
121
|
+
klass.define_instance_method('minmax_by') do |method|
|
122
|
+
method.define_block_argument('block')
|
123
|
+
end
|
124
|
+
|
125
|
+
klass.define_instance_method('none?')
|
126
|
+
|
127
|
+
klass.define_instance_method('one?')
|
128
|
+
|
129
|
+
klass.define_instance_method('partition')
|
130
|
+
|
131
|
+
klass.define_instance_method('reduce') do |method|
|
132
|
+
method.define_optional_argument('initial')
|
133
|
+
method.define_optional_argument('sym')
|
134
|
+
method.define_block_argument('block')
|
135
|
+
end
|
136
|
+
|
137
|
+
klass.define_instance_method('reject')
|
138
|
+
|
139
|
+
klass.define_instance_method('reverse_each') do |method|
|
140
|
+
method.define_block_argument('block')
|
141
|
+
end
|
142
|
+
|
143
|
+
klass.define_instance_method('select')
|
144
|
+
|
145
|
+
klass.define_instance_method('slice_before') do |method|
|
146
|
+
method.define_optional_argument('arg')
|
147
|
+
method.define_block_argument('block')
|
148
|
+
end
|
149
|
+
|
150
|
+
klass.define_instance_method('sort') do |method|
|
151
|
+
method.define_block_argument('prc')
|
152
|
+
end
|
153
|
+
|
154
|
+
klass.define_instance_method('sort_by')
|
155
|
+
|
156
|
+
klass.define_instance_method('take') do |method|
|
157
|
+
method.define_argument('n')
|
158
|
+
end
|
159
|
+
|
160
|
+
klass.define_instance_method('take_while')
|
161
|
+
|
162
|
+
klass.define_instance_method('to_a') do |method|
|
163
|
+
method.define_rest_argument('arg')
|
164
|
+
end
|
165
|
+
|
166
|
+
klass.define_instance_method('with_object') do |method|
|
167
|
+
method.define_argument('memo')
|
168
|
+
end
|
169
|
+
|
170
|
+
klass.define_instance_method('zip') do |method|
|
171
|
+
method.define_rest_argument('args')
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
##
|
176
|
+
# Constant: Enumerable::Enumerator
|
177
|
+
# Created: 2013-04-01 18:33:53 +0200
|
178
|
+
# Platform: rbx 2.0.0.rc1
|
179
|
+
#
|
180
|
+
RubyLint.global_scope.define_constant('Enumerable::Enumerator') do |klass|
|
181
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
182
|
+
|
183
|
+
klass.define_method('__class_init__')
|
184
|
+
|
185
|
+
klass.define_instance_method('each') do |method|
|
186
|
+
method.define_block_argument('block')
|
187
|
+
end
|
188
|
+
|
189
|
+
klass.define_instance_method('each_with_index')
|
190
|
+
|
191
|
+
klass.define_instance_method('enum_with_index')
|
192
|
+
|
193
|
+
klass.define_instance_method('initialize') do |method|
|
194
|
+
method.define_optional_argument('obj')
|
195
|
+
method.define_optional_argument('iter')
|
196
|
+
method.define_rest_argument('args')
|
197
|
+
method.define_block_argument('block')
|
198
|
+
end
|
199
|
+
|
200
|
+
klass.define_instance_method('next')
|
201
|
+
|
202
|
+
klass.define_instance_method('peek')
|
203
|
+
|
204
|
+
klass.define_instance_method('peek_values')
|
205
|
+
|
206
|
+
klass.define_instance_method('rewind')
|
207
|
+
|
208
|
+
klass.define_instance_method('with_index') do |method|
|
209
|
+
method.define_optional_argument('offset')
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# Constant: Enumerable::Enumerator::FiberGenerator
|
215
|
+
# Created: 2013-04-01 18:33:53 +0200
|
216
|
+
# Platform: rbx 2.0.0.rc1
|
217
|
+
#
|
218
|
+
RubyLint.global_scope.define_constant('Enumerable::Enumerator::FiberGenerator') do |klass|
|
219
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
220
|
+
|
221
|
+
klass.define_method('__class_init__')
|
222
|
+
|
223
|
+
klass.define_instance_method('initialize') do |method|
|
224
|
+
method.define_argument('obj')
|
225
|
+
end
|
226
|
+
|
227
|
+
klass.define_instance_method('next')
|
228
|
+
|
229
|
+
klass.define_instance_method('next?')
|
230
|
+
|
231
|
+
klass.define_instance_method('reset')
|
232
|
+
|
233
|
+
klass.define_instance_method('rewind')
|
234
|
+
end
|
235
|
+
|
236
|
+
##
|
237
|
+
# Constant: Enumerable::Enumerator::Generator
|
238
|
+
# Created: 2013-04-01 18:33:53 +0200
|
239
|
+
# Platform: rbx 2.0.0.rc1
|
240
|
+
#
|
241
|
+
RubyLint.global_scope.define_constant('Enumerable::Enumerator::Generator') do |klass|
|
242
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
243
|
+
|
244
|
+
klass.define_method('__class_init__')
|
245
|
+
|
246
|
+
klass.define_instance_method('each')
|
247
|
+
|
248
|
+
klass.define_instance_method('initialize') do |method|
|
249
|
+
method.define_block_argument('block')
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
##
|
254
|
+
# Constant: Enumerable::Enumerator::SortedElement
|
255
|
+
# Created: 2013-04-01 18:33:53 +0200
|
256
|
+
# Platform: rbx 2.0.0.rc1
|
257
|
+
#
|
258
|
+
RubyLint.global_scope.define_constant('Enumerable::Enumerator::SortedElement') do |klass|
|
259
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
260
|
+
|
261
|
+
klass.define_method('__class_init__')
|
262
|
+
|
263
|
+
klass.define_instance_method('<=>') do |method|
|
264
|
+
method.define_argument('other')
|
265
|
+
end
|
266
|
+
|
267
|
+
klass.define_instance_method('initialize') do |method|
|
268
|
+
method.define_argument('val')
|
269
|
+
method.define_argument('sort_id')
|
270
|
+
end
|
271
|
+
|
272
|
+
klass.define_instance_method('sort_id')
|
273
|
+
|
274
|
+
klass.define_instance_method('value')
|
275
|
+
end
|
276
|
+
|
277
|
+
##
|
278
|
+
# Constant: Enumerable::Enumerator::ThreadGenerator
|
279
|
+
# Created: 2013-04-01 18:33:53 +0200
|
280
|
+
# Platform: rbx 2.0.0.rc1
|
281
|
+
#
|
282
|
+
RubyLint.global_scope.define_constant('Enumerable::Enumerator::ThreadGenerator') do |klass|
|
283
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
284
|
+
|
285
|
+
klass.define_method('__class_init__')
|
286
|
+
|
287
|
+
klass.define_instance_method('initialize') do |method|
|
288
|
+
method.define_argument('enum')
|
289
|
+
method.define_argument('obj')
|
290
|
+
method.define_argument('meth')
|
291
|
+
method.define_argument('args')
|
292
|
+
end
|
293
|
+
|
294
|
+
klass.define_instance_method('kill') do |method|
|
295
|
+
method.define_argument('obj_id')
|
296
|
+
end
|
297
|
+
|
298
|
+
klass.define_instance_method('next')
|
299
|
+
|
300
|
+
klass.define_instance_method('next?')
|
301
|
+
|
302
|
+
klass.define_instance_method('reset')
|
303
|
+
|
304
|
+
klass.define_instance_method('rewind')
|
305
|
+
end
|
306
|
+
|
307
|
+
##
|
308
|
+
# Constant: Enumerable::Enumerator::Yielder
|
309
|
+
# Created: 2013-04-01 18:33:53 +0200
|
310
|
+
# Platform: rbx 2.0.0.rc1
|
311
|
+
#
|
312
|
+
RubyLint.global_scope.define_constant('Enumerable::Enumerator::Yielder') do |klass|
|
313
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
314
|
+
|
315
|
+
klass.define_method('__class_init__')
|
316
|
+
|
317
|
+
klass.define_instance_method('<<') do |method|
|
318
|
+
method.define_argument('value')
|
319
|
+
end
|
320
|
+
|
321
|
+
klass.define_instance_method('initialize') do |method|
|
322
|
+
method.define_block_argument('block')
|
323
|
+
end
|
324
|
+
|
325
|
+
klass.define_instance_method('yield') do |method|
|
326
|
+
method.define_rest_argument('args')
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
##
|
331
|
+
# Constant: Enumerable::SortedElement
|
332
|
+
# Created: 2013-04-01 18:33:53 +0200
|
333
|
+
# Platform: rbx 2.0.0.rc1
|
334
|
+
#
|
335
|
+
RubyLint.global_scope.define_constant('Enumerable::SortedElement') do |klass|
|
336
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
337
|
+
|
338
|
+
klass.define_method('__class_init__')
|
339
|
+
|
340
|
+
klass.define_instance_method('<=>') do |method|
|
341
|
+
method.define_argument('other')
|
342
|
+
end
|
343
|
+
|
344
|
+
klass.define_instance_method('initialize') do |method|
|
345
|
+
method.define_argument('val')
|
346
|
+
method.define_argument('sort_id')
|
347
|
+
end
|
348
|
+
|
349
|
+
klass.define_instance_method('sort_id')
|
350
|
+
|
351
|
+
klass.define_instance_method('value')
|
352
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
##
|
2
|
+
# Constant: Enumerator
|
3
|
+
# Created: 2013-04-01 18:33:53 +0200
|
4
|
+
# Platform: rbx 2.0.0.rc1
|
5
|
+
#
|
6
|
+
RubyLint.global_scope.define_constant('Enumerator') do |klass|
|
7
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
8
|
+
|
9
|
+
klass.define_method('__class_init__')
|
10
|
+
|
11
|
+
klass.define_instance_method('each') do |method|
|
12
|
+
method.define_block_argument('block')
|
13
|
+
end
|
14
|
+
|
15
|
+
klass.define_instance_method('each_with_index')
|
16
|
+
|
17
|
+
klass.define_instance_method('enum_with_index')
|
18
|
+
|
19
|
+
klass.define_instance_method('initialize') do |method|
|
20
|
+
method.define_optional_argument('obj')
|
21
|
+
method.define_optional_argument('iter')
|
22
|
+
method.define_rest_argument('args')
|
23
|
+
method.define_block_argument('block')
|
24
|
+
end
|
25
|
+
|
26
|
+
klass.define_instance_method('next')
|
27
|
+
|
28
|
+
klass.define_instance_method('peek')
|
29
|
+
|
30
|
+
klass.define_instance_method('peek_values')
|
31
|
+
|
32
|
+
klass.define_instance_method('rewind')
|
33
|
+
|
34
|
+
klass.define_instance_method('with_index') do |method|
|
35
|
+
method.define_optional_argument('offset')
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,304 @@
|
|
1
|
+
##
|
2
|
+
# Constant: ERB
|
3
|
+
# Created: 2013-04-01 18:33:53 +0200
|
4
|
+
# Platform: rbx 2.0.0.rc1
|
5
|
+
#
|
6
|
+
RubyLint.global_scope.define_constant('ERB') do |klass|
|
7
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
8
|
+
|
9
|
+
klass.define_method('__class_init__')
|
10
|
+
|
11
|
+
klass.define_method('version')
|
12
|
+
|
13
|
+
klass.define_instance_method('def_class') do |method|
|
14
|
+
method.define_optional_argument('superklass')
|
15
|
+
method.define_optional_argument('methodname')
|
16
|
+
end
|
17
|
+
|
18
|
+
klass.define_instance_method('def_method') do |method|
|
19
|
+
method.define_argument('mod')
|
20
|
+
method.define_argument('methodname')
|
21
|
+
method.define_optional_argument('fname')
|
22
|
+
end
|
23
|
+
|
24
|
+
klass.define_instance_method('def_module') do |method|
|
25
|
+
method.define_optional_argument('methodname')
|
26
|
+
end
|
27
|
+
|
28
|
+
klass.define_instance_method('filename')
|
29
|
+
|
30
|
+
klass.define_instance_method('filename=')
|
31
|
+
|
32
|
+
klass.define_instance_method('result') do |method|
|
33
|
+
method.define_optional_argument('b')
|
34
|
+
end
|
35
|
+
|
36
|
+
klass.define_instance_method('run') do |method|
|
37
|
+
method.define_optional_argument('b')
|
38
|
+
end
|
39
|
+
|
40
|
+
klass.define_instance_method('set_eoutvar') do |method|
|
41
|
+
method.define_argument('compiler')
|
42
|
+
method.define_optional_argument('eoutvar')
|
43
|
+
end
|
44
|
+
|
45
|
+
klass.define_instance_method('src')
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Constant: ERB::Compiler
|
50
|
+
# Created: 2013-04-01 18:33:53 +0200
|
51
|
+
# Platform: rbx 2.0.0.rc1
|
52
|
+
#
|
53
|
+
RubyLint.global_scope.define_constant('ERB::Compiler') do |klass|
|
54
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
55
|
+
|
56
|
+
klass.define_method('__class_init__')
|
57
|
+
|
58
|
+
klass.define_instance_method('compile') do |method|
|
59
|
+
method.define_argument('s')
|
60
|
+
end
|
61
|
+
|
62
|
+
klass.define_instance_method('content_dump') do |method|
|
63
|
+
method.define_argument('s')
|
64
|
+
end
|
65
|
+
|
66
|
+
klass.define_instance_method('insert_cmd')
|
67
|
+
|
68
|
+
klass.define_instance_method('insert_cmd=')
|
69
|
+
|
70
|
+
klass.define_instance_method('make_scanner') do |method|
|
71
|
+
method.define_argument('src')
|
72
|
+
end
|
73
|
+
|
74
|
+
klass.define_instance_method('percent')
|
75
|
+
|
76
|
+
klass.define_instance_method('post_cmd')
|
77
|
+
|
78
|
+
klass.define_instance_method('post_cmd=')
|
79
|
+
|
80
|
+
klass.define_instance_method('pre_cmd')
|
81
|
+
|
82
|
+
klass.define_instance_method('pre_cmd=')
|
83
|
+
|
84
|
+
klass.define_instance_method('prepare_trim_mode') do |method|
|
85
|
+
method.define_argument('mode')
|
86
|
+
end
|
87
|
+
|
88
|
+
klass.define_instance_method('put_cmd')
|
89
|
+
|
90
|
+
klass.define_instance_method('put_cmd=')
|
91
|
+
|
92
|
+
klass.define_instance_method('trim_mode')
|
93
|
+
end
|
94
|
+
|
95
|
+
##
|
96
|
+
# Constant: ERB::Compiler::Buffer
|
97
|
+
# Created: 2013-04-01 18:33:53 +0200
|
98
|
+
# Platform: rbx 2.0.0.rc1
|
99
|
+
#
|
100
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::Buffer') do |klass|
|
101
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
102
|
+
|
103
|
+
klass.define_method('__class_init__')
|
104
|
+
|
105
|
+
klass.define_instance_method('close')
|
106
|
+
|
107
|
+
klass.define_instance_method('cr')
|
108
|
+
|
109
|
+
klass.define_instance_method('push') do |method|
|
110
|
+
method.define_argument('cmd')
|
111
|
+
end
|
112
|
+
|
113
|
+
klass.define_instance_method('script')
|
114
|
+
end
|
115
|
+
|
116
|
+
##
|
117
|
+
# Constant: ERB::Compiler::ExplicitScanner
|
118
|
+
# Created: 2013-04-01 18:33:53 +0200
|
119
|
+
# Platform: rbx 2.0.0.rc1
|
120
|
+
#
|
121
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::ExplicitScanner') do |klass|
|
122
|
+
klass.inherits(RubyLint.global_constant('ERB::Compiler::Scanner'))
|
123
|
+
|
124
|
+
klass.define_method('__class_init__')
|
125
|
+
|
126
|
+
klass.define_instance_method('scan')
|
127
|
+
end
|
128
|
+
|
129
|
+
##
|
130
|
+
# Constant: ERB::Compiler::PercentLine
|
131
|
+
# Created: 2013-04-01 18:33:53 +0200
|
132
|
+
# Platform: rbx 2.0.0.rc1
|
133
|
+
#
|
134
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::PercentLine') do |klass|
|
135
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
136
|
+
|
137
|
+
klass.define_method('__class_init__')
|
138
|
+
|
139
|
+
klass.define_instance_method('empty?')
|
140
|
+
|
141
|
+
klass.define_instance_method('to_s')
|
142
|
+
|
143
|
+
klass.define_instance_method('value')
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# Constant: ERB::Compiler::Scanner
|
148
|
+
# Created: 2013-04-01 18:33:53 +0200
|
149
|
+
# Platform: rbx 2.0.0.rc1
|
150
|
+
#
|
151
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::Scanner') do |klass|
|
152
|
+
klass.inherits(RubyLint.global_constant('Object'))
|
153
|
+
|
154
|
+
klass.define_method('__class_init__')
|
155
|
+
|
156
|
+
klass.define_method('default_scanner=') do |method|
|
157
|
+
method.define_argument('klass')
|
158
|
+
end
|
159
|
+
|
160
|
+
klass.define_method('make_scanner') do |method|
|
161
|
+
method.define_argument('src')
|
162
|
+
method.define_argument('trim_mode')
|
163
|
+
method.define_argument('percent')
|
164
|
+
end
|
165
|
+
|
166
|
+
klass.define_method('regist_scanner') do |method|
|
167
|
+
method.define_argument('klass')
|
168
|
+
method.define_argument('trim_mode')
|
169
|
+
method.define_argument('percent')
|
170
|
+
end
|
171
|
+
|
172
|
+
klass.define_instance_method('scan')
|
173
|
+
|
174
|
+
klass.define_instance_method('stag')
|
175
|
+
|
176
|
+
klass.define_instance_method('stag=')
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# Constant: ERB::Compiler::SimpleScanner
|
181
|
+
# Created: 2013-04-01 18:33:53 +0200
|
182
|
+
# Platform: rbx 2.0.0.rc1
|
183
|
+
#
|
184
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::SimpleScanner') do |klass|
|
185
|
+
klass.inherits(RubyLint.global_constant('ERB::Compiler::Scanner'))
|
186
|
+
|
187
|
+
klass.define_method('__class_init__')
|
188
|
+
|
189
|
+
klass.define_instance_method('scan')
|
190
|
+
end
|
191
|
+
|
192
|
+
##
|
193
|
+
# Constant: ERB::Compiler::SimpleScanner2
|
194
|
+
# Created: 2013-04-01 18:33:53 +0200
|
195
|
+
# Platform: rbx 2.0.0.rc1
|
196
|
+
#
|
197
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::SimpleScanner2') do |klass|
|
198
|
+
klass.inherits(RubyLint.global_constant('ERB::Compiler::Scanner'))
|
199
|
+
|
200
|
+
klass.define_method('__class_init__')
|
201
|
+
|
202
|
+
klass.define_instance_method('scan')
|
203
|
+
end
|
204
|
+
|
205
|
+
##
|
206
|
+
# Constant: ERB::Compiler::TrimScanner
|
207
|
+
# Created: 2013-04-01 18:33:53 +0200
|
208
|
+
# Platform: rbx 2.0.0.rc1
|
209
|
+
#
|
210
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::TrimScanner') do |klass|
|
211
|
+
klass.inherits(RubyLint.global_constant('ERB::Compiler::Scanner'))
|
212
|
+
|
213
|
+
klass.define_method('__class_init__')
|
214
|
+
|
215
|
+
klass.define_instance_method('explicit_trim_line') do |method|
|
216
|
+
method.define_argument('line')
|
217
|
+
end
|
218
|
+
|
219
|
+
klass.define_instance_method('is_erb_stag?') do |method|
|
220
|
+
method.define_argument('s')
|
221
|
+
end
|
222
|
+
|
223
|
+
klass.define_instance_method('percent_line') do |method|
|
224
|
+
method.define_argument('line')
|
225
|
+
method.define_block_argument('block')
|
226
|
+
end
|
227
|
+
|
228
|
+
klass.define_instance_method('scan') do |method|
|
229
|
+
method.define_block_argument('block')
|
230
|
+
end
|
231
|
+
|
232
|
+
klass.define_instance_method('scan_line') do |method|
|
233
|
+
method.define_argument('line')
|
234
|
+
end
|
235
|
+
|
236
|
+
klass.define_instance_method('stag')
|
237
|
+
|
238
|
+
klass.define_instance_method('stag=')
|
239
|
+
|
240
|
+
klass.define_instance_method('trim_line1') do |method|
|
241
|
+
method.define_argument('line')
|
242
|
+
end
|
243
|
+
|
244
|
+
klass.define_instance_method('trim_line2') do |method|
|
245
|
+
method.define_argument('line')
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
##
|
250
|
+
# Constant: ERB::Compiler::TrimScanner::ERB_STAG
|
251
|
+
# Created: 2013-04-01 18:33:53 +0200
|
252
|
+
# Platform: rbx 2.0.0.rc1
|
253
|
+
#
|
254
|
+
RubyLint.global_scope.define_constant('ERB::Compiler::TrimScanner::ERB_STAG') do |klass|
|
255
|
+
end
|
256
|
+
|
257
|
+
##
|
258
|
+
# Constant: ERB::DefMethod
|
259
|
+
# Created: 2013-04-01 18:33:53 +0200
|
260
|
+
# Platform: rbx 2.0.0.rc1
|
261
|
+
#
|
262
|
+
RubyLint.global_scope.define_constant('ERB::DefMethod') do |klass|
|
263
|
+
|
264
|
+
klass.define_method('__module_init__')
|
265
|
+
|
266
|
+
klass.define_method('def_erb_method') do |method|
|
267
|
+
method.define_argument('methodname')
|
268
|
+
method.define_argument('erb_or_fname')
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
##
|
273
|
+
# Constant: ERB::Revision
|
274
|
+
# Created: 2013-04-01 18:33:53 +0200
|
275
|
+
# Platform: rbx 2.0.0.rc1
|
276
|
+
#
|
277
|
+
RubyLint.global_scope.define_constant('ERB::Revision') do |klass|
|
278
|
+
end
|
279
|
+
|
280
|
+
##
|
281
|
+
# Constant: ERB::Util
|
282
|
+
# Created: 2013-04-01 18:33:53 +0200
|
283
|
+
# Platform: rbx 2.0.0.rc1
|
284
|
+
#
|
285
|
+
RubyLint.global_scope.define_constant('ERB::Util') do |klass|
|
286
|
+
|
287
|
+
klass.define_method('__module_init__')
|
288
|
+
|
289
|
+
klass.define_method('h') do |method|
|
290
|
+
method.define_argument('s')
|
291
|
+
end
|
292
|
+
|
293
|
+
klass.define_method('html_escape') do |method|
|
294
|
+
method.define_argument('s')
|
295
|
+
end
|
296
|
+
|
297
|
+
klass.define_method('u') do |method|
|
298
|
+
method.define_argument('s')
|
299
|
+
end
|
300
|
+
|
301
|
+
klass.define_method('url_encode') do |method|
|
302
|
+
method.define_argument('s')
|
303
|
+
end
|
304
|
+
end
|