yard 0.2.3.5 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- data/.yardopts +12 -10
- data/ChangeLog +5686 -0
- data/{README.markdown → README.md} +65 -11
- data/Rakefile +25 -13
- data/benchmarks/concat_vs_join.rb +12 -0
- data/benchmarks/erb_vs_erubis.rb +14 -14
- data/benchmarks/marshal_vs_dbm.rb +1 -1
- data/benchmarks/pathname_vs_string.rb +50 -0
- data/benchmarks/template_erb.rb +22 -0
- data/benchmarks/template_format.rb +6 -0
- data/benchmarks/template_profile.rb +17 -0
- data/bin/yri +16 -7
- data/docs/{CODE_OBJECTS.markdown → CodeObjects.md} +0 -0
- data/docs/{GETTING_STARTED.markdown → GettingStarted.md} +49 -11
- data/docs/{GLOSSARY.markdown → Glossary.md} +0 -0
- data/docs/{HANDLERS.markdown → Handlers.md} +5 -5
- data/docs/{OVERVIEW.markdown → Overview.md} +9 -13
- data/docs/{PARSER.markdown → Parser.md} +1 -1
- data/docs/{TAGS.markdown → Tags.md} +1 -1
- data/docs/Templates.md +286 -0
- data/docs/{WHATSNEW.markdown → WhatsNew.md} +82 -2
- data/lib/rubygems_plugin.rb +17 -20
- data/lib/yard.rb +47 -1
- data/lib/yard/autoload.rb +38 -47
- data/lib/yard/cli/yard_graph.rb +36 -13
- data/lib/yard/cli/yardoc.rb +74 -12
- data/lib/yard/code_objects/base.rb +182 -14
- data/lib/yard/code_objects/class_object.rb +39 -2
- data/lib/yard/code_objects/class_variable_object.rb +4 -0
- data/lib/yard/code_objects/constant_object.rb +8 -0
- data/lib/yard/code_objects/extended_method_object.rb +14 -0
- data/lib/yard/code_objects/method_object.rb +60 -2
- data/lib/yard/code_objects/module_object.rb +6 -0
- data/lib/yard/code_objects/namespace_object.rb +99 -2
- data/lib/yard/code_objects/proxy.rb +53 -6
- data/lib/yard/code_objects/root_object.rb +2 -0
- data/lib/yard/core_ext/array.rb +61 -0
- data/lib/yard/core_ext/file.rb +21 -4
- data/lib/yard/core_ext/module.rb +11 -1
- data/lib/yard/core_ext/string.rb +13 -2
- data/lib/yard/core_ext/symbol_hash.rb +51 -3
- data/lib/yard/docstring.rb +68 -19
- data/lib/yard/globals.rb +5 -2
- data/lib/yard/handlers/base.rb +13 -3
- data/lib/yard/handlers/processor.rb +64 -2
- data/lib/yard/handlers/ruby/class_handler.rb +1 -1
- data/lib/yard/handlers/ruby/class_variable_handler.rb +5 -1
- data/lib/yard/handlers/ruby/constant_handler.rb +38 -4
- data/lib/yard/handlers/ruby/exception_handler.rb +1 -0
- data/lib/yard/handlers/ruby/legacy/base.rb +2 -2
- data/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +6 -3
- data/lib/yard/handlers/ruby/legacy/constant_handler.rb +21 -2
- data/lib/yard/handlers/ruby/legacy/method_handler.rb +10 -0
- data/lib/yard/handlers/ruby/legacy/yield_handler.rb +2 -1
- data/lib/yard/handlers/ruby/method_handler.rb +10 -0
- data/lib/yard/handlers/ruby/yield_handler.rb +2 -1
- data/lib/yard/logging.rb +17 -0
- data/lib/yard/parser/ruby/ast_node.rb +101 -0
- data/lib/yard/parser/ruby/legacy/ruby_lex.rb +2 -2
- data/lib/yard/parser/ruby/legacy/statement_list.rb +10 -9
- data/lib/yard/parser/ruby/ruby_parser.rb +32 -3
- data/lib/yard/parser/source_parser.rb +82 -5
- data/lib/yard/rake/yardoc_task.rb +38 -3
- data/lib/yard/registry.rb +112 -2
- data/lib/yard/serializers/base.rb +48 -1
- data/lib/yard/serializers/file_system_serializer.rb +23 -2
- data/lib/yard/serializers/process_serializer.rb +10 -0
- data/lib/yard/serializers/stdout_serializer.rb +11 -0
- data/lib/yard/tags/library.rb +4 -1
- data/lib/yard/tags/overload_tag.rb +3 -12
- data/lib/yard/templates/engine.rb +162 -0
- data/lib/yard/{generators → templates}/helpers/base_helper.rb +14 -13
- data/lib/yard/{generators → templates}/helpers/filter_helper.rb +1 -1
- data/lib/yard/templates/helpers/html_helper.rb +287 -0
- data/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +29 -0
- data/lib/yard/templates/helpers/html_syntax_highlight_helper18.rb +27 -0
- data/lib/yard/{generators → templates}/helpers/markup_helper.rb +15 -11
- data/lib/yard/{generators → templates}/helpers/method_helper.rb +8 -1
- data/lib/yard/templates/helpers/module_helper.rb +15 -0
- data/lib/yard/templates/helpers/text_helper.rb +60 -0
- data/lib/yard/templates/helpers/uml_helper.rb +33 -0
- data/lib/yard/templates/template.rb +355 -0
- data/lib/yard/verifier.rb +110 -0
- data/spec/cli/yardoc_spec.rb +23 -1
- data/spec/code_objects/base_spec.rb +8 -0
- data/spec/code_objects/class_object_spec.rb +166 -156
- data/spec/code_objects/method_object_spec.rb +2 -2
- data/spec/code_objects/module_object_spec.rb +112 -110
- data/spec/code_objects/proxy_spec.rb +9 -0
- data/spec/core_ext/array_spec.rb +33 -0
- data/spec/core_ext/file_spec.rb +40 -12
- data/spec/core_ext/module_spec.rb +15 -0
- data/spec/core_ext/string_spec.rb +10 -2
- data/spec/docstring_spec.rb +157 -135
- data/spec/handlers/class_handler_spec.rb +3 -0
- data/spec/handlers/class_variable_handler_spec.rb +3 -1
- data/spec/handlers/constant_handler_spec.rb +38 -0
- data/spec/handlers/examples/class_handler_001.rb.txt +14 -1
- data/spec/handlers/examples/class_variable_handler_001.rb.txt +1 -0
- data/spec/handlers/examples/constant_handler_001.rb.txt +10 -1
- data/spec/handlers/examples/exception_handler_001.rb.txt +5 -0
- data/spec/handlers/examples/method_handler_001.rb.txt +15 -0
- data/spec/handlers/examples/mixin_handler_001.rb.txt +13 -0
- data/spec/handlers/exception_handler_spec.rb +4 -0
- data/spec/handlers/method_handler_spec.rb +22 -0
- data/spec/handlers/mixin_handler_spec.rb +5 -3
- data/spec/handlers/yield_handler_spec.rb +1 -1
- data/spec/parser/ruby/ast_node_spec.rb +16 -0
- data/spec/parser/ruby/legacy/statement_list_spec.rb +36 -0
- data/spec/parser/ruby/ruby_parser_spec.rb +80 -0
- data/spec/parser/source_parser_spec.rb +48 -2
- data/spec/rake/yardoc_task_spec.rb +62 -25
- data/spec/serializers/file_system_serializer_spec.rb +1 -1
- data/spec/templates/class_spec.rb +34 -0
- data/spec/templates/engine_spec.rb +121 -0
- data/spec/templates/examples/class001.html +271 -0
- data/spec/templates/examples/class001.txt +31 -0
- data/spec/templates/examples/method001.html +96 -0
- data/spec/templates/examples/method001.txt +28 -0
- data/spec/templates/examples/method002.html +81 -0
- data/spec/templates/examples/method002.txt +20 -0
- data/spec/templates/examples/method003.html +137 -0
- data/spec/templates/examples/method003.txt +45 -0
- data/spec/templates/examples/module001.dot +31 -0
- data/spec/templates/examples/module001.html +294 -0
- data/spec/templates/examples/module001.txt +33 -0
- data/spec/templates/examples/tag001.txt +82 -0
- data/spec/templates/helpers/base_helper_spec.rb +129 -0
- data/spec/{generators → templates}/helpers/html_helper_spec.rb +73 -16
- data/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +39 -0
- data/spec/{generators → templates}/helpers/markup_helper_spec.rb +6 -7
- data/spec/templates/method_spec.rb +75 -0
- data/spec/templates/module_spec.rb +50 -0
- data/spec/templates/spec_helper.rb +33 -0
- data/spec/templates/tag_spec.rb +39 -0
- data/spec/templates/template_spec.rb +398 -0
- data/spec/verifier_spec.rb +51 -0
- data/spec/yard_spec.rb +46 -0
- data/templates/default/class/dot/setup.rb +6 -0
- data/templates/default/class/dot/superklass.erb +3 -0
- data/templates/default/class/html/constructor_details.erb +8 -0
- data/templates/default/class/html/setup.rb +1 -0
- data/templates/default/class/html/subclasses.erb +4 -0
- data/templates/default/class/setup.rb +29 -0
- data/templates/default/class/text/setup.rb +11 -0
- data/templates/default/class/text/subclasses.erb +5 -0
- data/templates/default/docstring/html/abstract.erb +4 -0
- data/templates/default/docstring/html/deprecated.erb +1 -0
- data/templates/default/docstring/html/index.erb +5 -0
- data/templates/default/docstring/html/note.erb +6 -0
- data/templates/default/docstring/html/text.erb +1 -0
- data/templates/default/docstring/html/todo.erb +6 -0
- data/templates/default/docstring/setup.rb +39 -0
- data/templates/default/docstring/text/abstract.erb +2 -0
- data/templates/default/docstring/text/deprecated.erb +2 -0
- data/templates/default/docstring/text/index.erb +2 -0
- data/templates/default/docstring/text/note.erb +4 -0
- data/templates/default/docstring/text/text.erb +1 -0
- data/templates/default/docstring/text/todo.erb +4 -0
- data/templates/default/fulldoc/html/css/common.css +1 -0
- data/templates/default/fulldoc/html/css/full_list.css +23 -0
- data/templates/default/fulldoc/html/css/style.css +261 -0
- data/templates/default/fulldoc/html/full_list.erb +36 -0
- data/templates/default/fulldoc/html/js/app.js +91 -0
- data/templates/default/fulldoc/html/js/full_list.js +39 -0
- data/templates/default/fulldoc/html/js/jquery.js +19 -0
- data/templates/default/fulldoc/html/setup.rb +86 -0
- data/templates/default/{uml → layout}/dot/header.erb +2 -2
- data/templates/default/layout/dot/setup.rb +14 -0
- data/templates/default/layout/html/breadcrumb.erb +11 -0
- data/templates/default/layout/html/footer.erb +5 -0
- data/templates/default/layout/html/headers.erb +13 -0
- data/templates/default/layout/html/index.erb +49 -0
- data/templates/default/layout/html/layout.erb +20 -0
- data/templates/default/layout/html/search.erb +5 -0
- data/templates/default/layout/html/setup.rb +58 -0
- data/templates/default/method/html/header.erb +14 -3
- data/templates/default/method/setup.rb +3 -0
- data/templates/default/method/text/header.erb +1 -1
- data/templates/default/method_details/html/header.erb +3 -0
- data/templates/default/method_details/html/method_signature.erb +17 -0
- data/templates/default/method_details/html/source.erb +10 -0
- data/templates/default/method_details/setup.rb +8 -0
- data/templates/default/method_details/text/header.erb +10 -0
- data/templates/default/method_details/text/method_signature.erb +12 -0
- data/templates/default/method_details/text/setup.rb +10 -0
- data/templates/default/module/dot/child.erb +1 -0
- data/templates/default/module/dot/dependencies.erb +3 -0
- data/templates/default/{uml/dot/subgraph.erb → module/dot/header.erb} +3 -3
- data/templates/default/{uml → module}/dot/info.erb +4 -4
- data/templates/default/module/dot/setup.rb +14 -0
- data/templates/default/module/html/attribute_details.erb +11 -0
- data/templates/default/module/html/attribute_summary.erb +8 -0
- data/templates/default/module/html/box_info.erb +32 -0
- data/templates/default/module/html/children.erb +8 -0
- data/templates/default/module/html/constant_summary.erb +13 -0
- data/templates/default/module/html/defines.erb +3 -0
- data/templates/default/module/html/header.erb +4 -4
- data/templates/default/module/html/inherited_constants.erb +8 -0
- data/templates/default/module/html/inherited_methods.erb +9 -0
- data/templates/default/module/html/item_summary.erb +20 -0
- data/templates/default/module/html/method_details_list.erb +8 -0
- data/templates/default/module/html/method_summary.erb +8 -0
- data/templates/default/module/html/methodmissing.erb +12 -0
- data/templates/default/module/html/pre_docstring.erb +1 -0
- data/templates/default/module/setup.rb +83 -0
- data/templates/default/module/text/children.erb +10 -0
- data/templates/default/module/text/class_meths_list.erb +8 -0
- data/templates/default/module/text/extends.erb +8 -0
- data/templates/default/module/text/header.erb +7 -0
- data/templates/default/module/text/includes.erb +8 -0
- data/templates/default/module/text/instance_meths_list.erb +8 -0
- data/templates/default/module/text/setup.rb +12 -0
- data/templates/default/root/dot/child.erb +3 -0
- data/templates/default/root/dot/setup.rb +5 -0
- data/templates/default/tags/html/example.erb +5 -16
- data/templates/default/tags/html/index.erb +3 -0
- data/templates/default/tags/html/option.erb +17 -20
- data/templates/default/tags/html/overload.erb +13 -0
- data/templates/default/tags/html/see.erb +5 -10
- data/templates/default/tags/html/tag.erb +20 -0
- data/templates/default/tags/setup.rb +50 -0
- data/templates/default/tags/text/example.erb +8 -10
- data/templates/default/tags/text/index.erb +1 -0
- data/templates/default/tags/text/option.erb +18 -3
- data/templates/default/tags/text/overload.erb +19 -0
- data/templates/default/tags/text/see.erb +8 -2
- data/templates/default/tags/text/tag.erb +13 -0
- metadata +142 -158
- data/bin/view_generator +0 -17
- data/docs/FAQ.markdown +0 -34
- data/docs/GENERATORS.markdown +0 -211
- data/lib/yard/generators/attributes_generator.rb +0 -22
- data/lib/yard/generators/base.rb +0 -305
- data/lib/yard/generators/class_generator.rb +0 -27
- data/lib/yard/generators/constants_generator.rb +0 -74
- data/lib/yard/generators/constructor_generator.rb +0 -25
- data/lib/yard/generators/deprecated_generator.rb +0 -15
- data/lib/yard/generators/docstring_generator.rb +0 -15
- data/lib/yard/generators/full_doc_generator.rb +0 -127
- data/lib/yard/generators/helpers/html_helper.rb +0 -196
- data/lib/yard/generators/helpers/html_syntax_highlight_helper.rb +0 -49
- data/lib/yard/generators/helpers/uml_helper.rb +0 -16
- data/lib/yard/generators/inheritance_generator.rb +0 -16
- data/lib/yard/generators/method_details_generator.rb +0 -18
- data/lib/yard/generators/method_generator.rb +0 -43
- data/lib/yard/generators/method_listing_generator.rb +0 -105
- data/lib/yard/generators/method_missing_generator.rb +0 -25
- data/lib/yard/generators/method_signature_generator.rb +0 -19
- data/lib/yard/generators/method_summary_generator.rb +0 -21
- data/lib/yard/generators/mixins_generator.rb +0 -21
- data/lib/yard/generators/module_generator.rb +0 -23
- data/lib/yard/generators/overloads_generator.rb +0 -20
- data/lib/yard/generators/quick_doc_generator.rb +0 -25
- data/lib/yard/generators/root_generator.rb +0 -32
- data/lib/yard/generators/source_generator.rb +0 -11
- data/lib/yard/generators/tags_generator.rb +0 -99
- data/lib/yard/generators/uml_generator.rb +0 -102
- data/lib/yard/generators/visibility_group_generator.rb +0 -26
- data/spec/generators/base_spec.rb +0 -64
- data/spec/generators/full_doc_generator_spec.rb +0 -29
- data/spec/generators/helpers/base_helper_spec.rb +0 -15
- data/spec/generators/quick_doc_generator_spec.rb +0 -13
- data/templates/default/attributes/html/header.erb +0 -47
- data/templates/default/attributes/text/header.erb +0 -10
- data/templates/default/class/html/header.erb +0 -4
- data/templates/default/constants/html/constants.erb +0 -9
- data/templates/default/constants/html/header.erb +0 -3
- data/templates/default/constants/html/included.erb +0 -9
- data/templates/default/constants/html/inherited.erb +0 -9
- data/templates/default/constructor/html/header.erb +0 -10
- data/templates/default/deprecated/html/main.erb +0 -6
- data/templates/default/deprecated/text/main.erb +0 -3
- data/templates/default/docstring/html/main.erb +0 -3
- data/templates/default/docstring/text/main.erb +0 -3
- data/templates/default/fulldoc/html/all_files.erb +0 -19
- data/templates/default/fulldoc/html/all_methods.erb +0 -26
- data/templates/default/fulldoc/html/all_namespaces.erb +0 -22
- data/templates/default/fulldoc/html/app.js +0 -18
- data/templates/default/fulldoc/html/custom.css +0 -1
- data/templates/default/fulldoc/html/file.erb +0 -16
- data/templates/default/fulldoc/html/footer.erb +0 -5
- data/templates/default/fulldoc/html/header.erb +0 -16
- data/templates/default/fulldoc/html/html_head.erb +0 -4
- data/templates/default/fulldoc/html/index.erb +0 -19
- data/templates/default/fulldoc/html/jquery.js +0 -11
- data/templates/default/fulldoc/html/style.css +0 -81
- data/templates/default/fulldoc/html/syntax_highlight.css +0 -24
- data/templates/default/inheritance/html/header.erb +0 -8
- data/templates/default/inheritance/text/header.erb +0 -3
- data/templates/default/method/html/aliases.erb +0 -6
- data/templates/default/method/html/title.erb +0 -3
- data/templates/default/method/text/title.erb +0 -1
- data/templates/default/methoddetails/html/header.erb +0 -8
- data/templates/default/methoddetails/html/method_header.erb +0 -3
- data/templates/default/methodmissing/html/header.erb +0 -12
- data/templates/default/methodsignature/html/main.erb +0 -10
- data/templates/default/methodsignature/text/main.erb +0 -8
- data/templates/default/methodsummary/html/header.erb +0 -5
- data/templates/default/methodsummary/html/included.erb +0 -9
- data/templates/default/methodsummary/html/inherited.erb +0 -9
- data/templates/default/methodsummary/html/summary.erb +0 -29
- data/templates/default/methodsummary/text/header.erb +0 -5
- data/templates/default/methodsummary/text/included.erb +0 -0
- data/templates/default/methodsummary/text/inherited.erb +0 -0
- data/templates/default/methodsummary/text/summary.erb +0 -6
- data/templates/default/mixins/html/header.erb +0 -4
- data/templates/default/overloads/html/header.erb +0 -8
- data/templates/default/overloads/text/header.erb +0 -8
- data/templates/default/quickdoc/html/header.erb +0 -15
- data/templates/default/quickdoc/text/header.erb +0 -12
- data/templates/default/root/html/header.erb +0 -4
- data/templates/default/source/html/main.erb +0 -15
- data/templates/default/source/text/main.erb +0 -4
- data/templates/default/tags/html/header.erb +0 -4
- data/templates/default/tags/html/param.erb +0 -21
- data/templates/default/tags/html/tags.erb +0 -23
- data/templates/default/tags/html/todo.erb +0 -8
- data/templates/default/tags/text/header.erb +0 -3
- data/templates/default/tags/text/param.erb +0 -9
- data/templates/default/tags/text/tags.erb +0 -7
- data/templates/default/uml/dot/child.erb +0 -1
- data/templates/default/uml/dot/dependencies.erb +0 -10
- data/templates/default/uml/dot/superclasses.erb +0 -9
- data/templates/default/uml/dot/unknown.erb +0 -3
- data/templates/default/uml/dot/unknown_child.erb +0 -1
- data/templates/default/visibilitygroup/html/header.erb +0 -6
- data/templates/javadoc/attributes/html/header.erb +0 -16
- data/templates/javadoc/class/html/header.erb +0 -4
- data/templates/javadoc/constants/html/constants.erb +0 -9
- data/templates/javadoc/constants/html/header.erb +0 -3
- data/templates/javadoc/constants/html/included.erb +0 -12
- data/templates/javadoc/constants/html/inherited.erb +0 -12
- data/templates/javadoc/constructor/html/header.erb +0 -10
- data/templates/javadoc/deprecated/html/main.erb +0 -0
- data/templates/javadoc/docstring/html/main.erb +0 -6
- data/templates/javadoc/fulldoc/html/all_methods.erb +0 -25
- data/templates/javadoc/fulldoc/html/all_namespaces.erb +0 -19
- data/templates/javadoc/fulldoc/html/app.js +0 -18
- data/templates/javadoc/fulldoc/html/header.erb +0 -15
- data/templates/javadoc/fulldoc/html/html_head.erb +0 -3
- data/templates/javadoc/fulldoc/html/index.erb +0 -18
- data/templates/javadoc/fulldoc/html/jquery.js +0 -11
- data/templates/javadoc/fulldoc/html/readme.erb +0 -15
- data/templates/javadoc/fulldoc/html/style.css +0 -22
- data/templates/javadoc/fulldoc/html/syntax_highlight.css +0 -21
- data/templates/javadoc/inheritance/html/header.erb +0 -6
- data/templates/javadoc/method/html/aliases.erb +0 -6
- data/templates/javadoc/method/html/header.erb +0 -4
- data/templates/javadoc/method/html/title.erb +0 -4
- data/templates/javadoc/methoddetails/html/header.erb +0 -8
- data/templates/javadoc/methoddetails/html/method_header.erb +0 -0
- data/templates/javadoc/methodmissing/html/header.erb +0 -12
- data/templates/javadoc/methodsignature/html/main.erb +0 -8
- data/templates/javadoc/methodsummary/html/header.erb +0 -5
- data/templates/javadoc/methodsummary/html/included.erb +0 -12
- data/templates/javadoc/methodsummary/html/inherited.erb +0 -12
- data/templates/javadoc/methodsummary/html/summary.erb +0 -25
- data/templates/javadoc/mixins/html/header.erb +0 -5
- data/templates/javadoc/module/html/header.erb +0 -4
- data/templates/javadoc/source/html/main.erb +0 -15
- data/templates/javadoc/tags/html/header.erb +0 -5
- data/templates/javadoc/tags/html/see.erb +0 -8
- data/templates/javadoc/tags/html/tags.erb +0 -19
- data/templates/javadoc/visibilitygroup/html/header.erb +0 -5
@@ -0,0 +1,51 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper'
|
2
|
+
|
3
|
+
describe YARD::Verifier do
|
4
|
+
describe '#parse_expressions' do
|
5
|
+
it "should create #__execute method" do
|
6
|
+
v = Verifier.new("expr1")
|
7
|
+
v.should respond_to(:__execute)
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should parse @tagname into tag('tagname')" do
|
11
|
+
obj = mock(:object)
|
12
|
+
obj.should_receive(:tag).with('return')
|
13
|
+
Verifier.new('@return').call(obj)
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should parse @@tagname into object.tags('tagname')" do
|
17
|
+
obj = mock(:object)
|
18
|
+
obj.should_receive(:tags).with('return')
|
19
|
+
Verifier.new('@@return').call(obj)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should send any missing methods to object" do
|
23
|
+
obj = mock(:object)
|
24
|
+
obj.should_receive(:has_tag?).with('return')
|
25
|
+
Verifier.new('has_tag?("return")').call(obj)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should allow multiple expressions" do
|
29
|
+
obj = mock(:object)
|
30
|
+
obj.should_receive(:tag).with('return').and_return(true)
|
31
|
+
obj.should_receive(:tag).with('param').and_return(false)
|
32
|
+
Verifier.new('@return', '@param').call(obj).should == false
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe '#o' do
|
37
|
+
it "should alias object to o" do
|
38
|
+
obj = mock(:object)
|
39
|
+
obj.should_receive(:a).ordered
|
40
|
+
Verifier.new('o.a').call(obj)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '#call' do
|
45
|
+
it "should mock a nonexistent tag so that exceptions are not raised" do
|
46
|
+
obj = mock(:object)
|
47
|
+
obj.should_receive(:tag).and_return(nil)
|
48
|
+
Verifier.new('@return.text').call(obj).should == false
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/spec/yard_spec.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "spec_helper")
|
2
|
+
|
3
|
+
describe YARD do
|
4
|
+
describe '.load_plugins' do
|
5
|
+
it "should load any plugin starting with 'yard_' or 'yard-'" do
|
6
|
+
plugins = {
|
7
|
+
'yard' => mock('yard'),
|
8
|
+
'yard_plugin' => mock('yard_plugin'),
|
9
|
+
'yard-plugin' => mock('yard-plugin'),
|
10
|
+
'my-yard-plugin' => mock('yard-plugin'),
|
11
|
+
'rspec' => mock('rspec'),
|
12
|
+
}
|
13
|
+
plugins.each do |k, v|
|
14
|
+
v.should_receive(:name).at_least(1).times.and_return(k)
|
15
|
+
end
|
16
|
+
source_mock = mock(:source_index)
|
17
|
+
source_mock.should_receive(:entries).and_return(plugins)
|
18
|
+
Gem.should_receive(:source_index).and_return(source_mock)
|
19
|
+
YARD.should_receive(:require).with('yard_plugin').and_return(true)
|
20
|
+
YARD.should_receive(:require).with('yard-plugin').and_return(true)
|
21
|
+
log.should_receive(:debug).with(/Loading plugin 'yard_plugin'/).once
|
22
|
+
log.should_receive(:debug).with(/Loading plugin 'yard-plugin'/).once
|
23
|
+
YARD.load_plugins.should == true
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should ignore any plugins specified in '~/.yard/ignored_plugins'" do
|
27
|
+
path = File.expand_path("~/.yard/ignored_plugins")
|
28
|
+
plugins = {
|
29
|
+
'yard-plugin' => mock('yard-plugin'),
|
30
|
+
'yard-plugin2' => mock('yard-plugin2'),
|
31
|
+
'yard-plugin3' => mock('yard-plugin3'),
|
32
|
+
}
|
33
|
+
plugins.each do |k, v|
|
34
|
+
v.should_receive(:name).at_least(1).times.and_return(k)
|
35
|
+
end
|
36
|
+
source_mock = mock(:source_index)
|
37
|
+
source_mock.should_receive(:entries).and_return(plugins)
|
38
|
+
File.should_receive(:file?).with(path).and_return(true)
|
39
|
+
IO.should_receive(:read).with(path).and_return('yard-plugin yard-plugin2')
|
40
|
+
Gem.should_receive(:source_index).and_return(source_mock)
|
41
|
+
YARD.should_receive(:require).with('yard-plugin3').and_return(true)
|
42
|
+
log.should_receive(:debug).with(/Loading plugin 'yard-plugin3'/).once
|
43
|
+
YARD.load_plugins.should == true
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<div id="constructor_details">
|
2
|
+
<h2>Constructor Details</h2>
|
3
|
+
<% if @ctor.namespace != object %>
|
4
|
+
<p class="notice">This class inherits a constructor from <%= linkify @ctor, @ctor.namespace.path %></p>
|
5
|
+
<% else %>
|
6
|
+
<%= yieldall :object => @ctor, :index => 0 %>
|
7
|
+
<% end %>
|
8
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
include T('default/module/html')
|
@@ -0,0 +1,29 @@
|
|
1
|
+
include T('default/module')
|
2
|
+
|
3
|
+
def init
|
4
|
+
super
|
5
|
+
sections.place(:subclasses).before(:children)
|
6
|
+
sections.delete(:children)
|
7
|
+
sections.place([:constructor_details, [T('method_details')]]).before(:methodmissing)
|
8
|
+
end
|
9
|
+
|
10
|
+
def constructor_details
|
11
|
+
ctors = object.meths(:inherited => true, :included => true)
|
12
|
+
return unless @ctor = ctors.find {|o| o.name == :initialize }
|
13
|
+
erb(:constructor_details)
|
14
|
+
end
|
15
|
+
|
16
|
+
def subclasses
|
17
|
+
if !defined? @@subclasses
|
18
|
+
@@subclasses = {}
|
19
|
+
list = run_verifier Registry.all(:class)
|
20
|
+
list.each do |o|
|
21
|
+
(@@subclasses[o.superclass] ||= []) << o if o.superclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
@subclasses = @@subclasses[object]
|
26
|
+
return if @subclasses.nil? || @subclasses.empty?
|
27
|
+
@subclasses = @subclasses.sort_by {|o| o.path }
|
28
|
+
erb(:subclasses)
|
29
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<p class="note deprecated"><strong>Deprecated.</strong> <%= htmlify_line object.tag(:deprecated).text %></p>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= htmlify(docstring_text) %>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
def init
|
2
|
+
return if object.docstring.blank?
|
3
|
+
sections :index, [:deprecated, :abstract, :todo, :note, :text], T('tags')
|
4
|
+
end
|
5
|
+
|
6
|
+
def abstract
|
7
|
+
return unless object.has_tag?(:abstract)
|
8
|
+
erb(:abstract)
|
9
|
+
end
|
10
|
+
|
11
|
+
def deprecated
|
12
|
+
return unless object.has_tag?(:deprecated)
|
13
|
+
erb(:deprecated)
|
14
|
+
end
|
15
|
+
|
16
|
+
def todo
|
17
|
+
return unless object.has_tag?(:todo)
|
18
|
+
erb(:todo)
|
19
|
+
end
|
20
|
+
|
21
|
+
def note
|
22
|
+
return unless object.has_tag?(:note)
|
23
|
+
erb(:note)
|
24
|
+
end
|
25
|
+
|
26
|
+
def docstring_text
|
27
|
+
text = ""
|
28
|
+
if object.tags(:overload).size == 1 && object.docstring.empty?
|
29
|
+
text = object.tag(:overload).docstring
|
30
|
+
else
|
31
|
+
text = object.docstring
|
32
|
+
end
|
33
|
+
|
34
|
+
if text.strip.empty? && object.tags(:return).size == 1 && object.tag(:return).text
|
35
|
+
text = object.tag(:return).text.gsub(/\A([a-z])/) {|x| x.upcase }
|
36
|
+
end
|
37
|
+
|
38
|
+
text.strip
|
39
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= indent wrap(h(docstring_text.strip), 68) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
/* Override this file with custom rules */
|
@@ -0,0 +1,23 @@
|
|
1
|
+
body {
|
2
|
+
margin: 0;
|
3
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
+
font-size: 13px;
|
5
|
+
height: 101%;
|
6
|
+
}
|
7
|
+
html { overflow-y: scroll; }
|
8
|
+
|
9
|
+
h1 { padding: 0; margin: 5px; margin-top: 12px; margin-left: 10px; margin-bottom: 0; font-size: 1.4em; }
|
10
|
+
.clear { clear: both; }
|
11
|
+
#search { position: absolute; right: 5px; top: 9px; }
|
12
|
+
#full_list { padding: 0; list-style: none; margin-left: 0; }
|
13
|
+
#full_list li { padding: 7px 15px; font-size: 1.1em; }
|
14
|
+
#noresults { display: none; padding: 7px 15px; }
|
15
|
+
li { color: #555; }
|
16
|
+
li.deprecated { text-decoration: line-through; font-style: italic; }
|
17
|
+
li.r1 { background: #f0f0f0; border: 1px dotted #f0f0f0; border-left-width: 0; border-right-width: 0; }
|
18
|
+
li.r2 { background: #fafafa; border: 1px dotted #fafafa; border-left-width: 0; border-right-width: 0; }
|
19
|
+
li:hover { background: #ffffa5; cursor: pointer; border: 1px dotted #ddddc4; border-left-width: 0; border-right-width: 0; }
|
20
|
+
li:hover * { position: relative; left: -3px; }
|
21
|
+
a:link, a:visited { text-decoration: none; color: #05a; }
|
22
|
+
a:hover { background: #ffffa5; }
|
23
|
+
#search input { border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
@@ -0,0 +1,261 @@
|
|
1
|
+
body {
|
2
|
+
padding: 0 20px;
|
3
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
+
font-size: 13px;
|
5
|
+
}
|
6
|
+
h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
|
7
|
+
h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
|
8
|
+
h1.title { margin-bottom: 10px; }
|
9
|
+
h1.alphaindex { margin-top: 0; font-size: 22px; }
|
10
|
+
h2 {
|
11
|
+
padding: 0;
|
12
|
+
padding-bottom: 3px;
|
13
|
+
border-bottom: 1px #aaa solid;
|
14
|
+
font-size: 1.4em;
|
15
|
+
margin: 1.8em 0 0.5em;
|
16
|
+
}
|
17
|
+
.clear { clear: both; }
|
18
|
+
.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
|
19
|
+
.docstring h1 { font-size: 1.2em; }
|
20
|
+
.docstring h2 { font-size: 1.1em; }
|
21
|
+
.docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
|
22
|
+
|
23
|
+
.note {
|
24
|
+
color: #222;
|
25
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
26
|
+
background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
|
27
|
+
}
|
28
|
+
.note.todo { background: #ffffc5; border-color: #ececaa; }
|
29
|
+
.note.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
30
|
+
.note.title { text-transform: lowercase; padding: 1px 5px; margin-left: 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; }
|
31
|
+
h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
|
32
|
+
.note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
|
33
|
+
.note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
34
|
+
.note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
|
35
|
+
|
36
|
+
h3.inherited {
|
37
|
+
font-style: italic;
|
38
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
39
|
+
font-weight: normal;
|
40
|
+
padding: 0;
|
41
|
+
margin: 0;
|
42
|
+
margin-top: 12px;
|
43
|
+
margin-bottom: 3px;
|
44
|
+
font-size: 13px;
|
45
|
+
}
|
46
|
+
p.inherited {
|
47
|
+
padding: 0;
|
48
|
+
margin: 0;
|
49
|
+
margin-left: 25px;
|
50
|
+
}
|
51
|
+
|
52
|
+
dl.box {
|
53
|
+
width: 520px;
|
54
|
+
font-size: 1em;
|
55
|
+
}
|
56
|
+
dl.box dt {
|
57
|
+
float: left;
|
58
|
+
display: block;
|
59
|
+
width: 100px;
|
60
|
+
margin: 0;
|
61
|
+
text-align: right;
|
62
|
+
font-weight: bold;
|
63
|
+
border: 1px solid #aaa;
|
64
|
+
border-width: 1px 0px 0px 1px;
|
65
|
+
padding: 6px 0;
|
66
|
+
padding-right: 10px;
|
67
|
+
}
|
68
|
+
dl.box dd {
|
69
|
+
float: left;
|
70
|
+
display: block;
|
71
|
+
width: 380px;
|
72
|
+
margin: 0;
|
73
|
+
padding: 6px 0;
|
74
|
+
padding-right: 20px;
|
75
|
+
border: 1px solid #aaa;
|
76
|
+
border-width: 1px 1px 0 0;
|
77
|
+
}
|
78
|
+
dl.box .last {
|
79
|
+
border-bottom: 1px solid #aaa;
|
80
|
+
}
|
81
|
+
dl.box .r1 { background: #eee; }
|
82
|
+
|
83
|
+
ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
|
84
|
+
#files { padding-left: 15px; font-size: 1.1em; }
|
85
|
+
|
86
|
+
#files { padding: 0; }
|
87
|
+
#files li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
|
88
|
+
|
89
|
+
dl.constants { margin-left: 40px; }
|
90
|
+
dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
|
91
|
+
dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
|
92
|
+
|
93
|
+
.summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
|
94
|
+
.summary_desc tt { font-size: 0.9em; }
|
95
|
+
dl.constants .summary_desc { font-size: 0.9em; font-weight: normal; }
|
96
|
+
|
97
|
+
.method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
|
98
|
+
.method_details.first { border: 0; }
|
99
|
+
p.signature {
|
100
|
+
font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
|
101
|
+
padding: 6px 10px; margin-top: 18px;
|
102
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
103
|
+
}
|
104
|
+
p.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
|
105
|
+
p.signature .overload { display: block; }
|
106
|
+
p.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
|
107
|
+
p.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
|
108
|
+
p.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
|
109
|
+
|
110
|
+
.tags h3 { font-size: 1em; margin-bottom: 0; }
|
111
|
+
.tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
|
112
|
+
.tags ul li { margin-bottom: 3px; }
|
113
|
+
.tags ul .name { font-family: monospace; font-weight: bold; }
|
114
|
+
.tags ul p { display: inline; margin-bottom: 5px; }
|
115
|
+
.tags { margin-bottom: 12px; }
|
116
|
+
|
117
|
+
.tags .examples h3 { margin-bottom: 10px; }
|
118
|
+
.tags .examples h4 { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
|
119
|
+
|
120
|
+
.tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
|
121
|
+
.tags .overload .overload_item .signature {
|
122
|
+
padding: 2px 8px;
|
123
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
124
|
+
}
|
125
|
+
.tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
|
126
|
+
.tags .overload .docstring { margin-top: 15px; }
|
127
|
+
|
128
|
+
.defines { display: none; }
|
129
|
+
|
130
|
+
#method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
|
131
|
+
|
132
|
+
.showSource { font-size: 0.9em; }
|
133
|
+
.showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
|
134
|
+
|
135
|
+
#content a:link, #content a:visited { text-decoration: none; color: #05a; }
|
136
|
+
#content a:hover { background: #ffffa5; }
|
137
|
+
.docstring { margin-right: 6em; }
|
138
|
+
|
139
|
+
ul.summary {
|
140
|
+
list-style: none;
|
141
|
+
font-family: monospace;
|
142
|
+
font-size: 1em;
|
143
|
+
line-height: 1.5em;
|
144
|
+
}
|
145
|
+
ul.summary a:link, ul.summary a:visited {
|
146
|
+
text-decoration: none; font-size: 1.1em;
|
147
|
+
}
|
148
|
+
ul.summary li { margin-bottom: 5px; }
|
149
|
+
.summary .summary_signature {
|
150
|
+
padding: 1px 10px;
|
151
|
+
background: #eaeaff; border: 1px solid #dfdfe5;
|
152
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
153
|
+
}
|
154
|
+
.summary_signature:hover { background: #eeeeff; cursor: pointer; }
|
155
|
+
#content .summary_signature:hover a:link,
|
156
|
+
#content .summary_signature:hover a:visited {
|
157
|
+
background: transparent;
|
158
|
+
color: #48f;
|
159
|
+
}
|
160
|
+
|
161
|
+
p.inherited a { font-family: monospace; font-size: 0.9em; }
|
162
|
+
p.inherited { word-spacing: 5px; font-size: 1.2em; }
|
163
|
+
|
164
|
+
p.children { font-size: 1.2em; }
|
165
|
+
p.children a { font-size: 0.9em; }
|
166
|
+
p.children strong { font-size: 0.8em; }
|
167
|
+
p.children strong.modules { padding-left: 5px; }
|
168
|
+
|
169
|
+
ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
|
170
|
+
ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
|
171
|
+
ul.fullTree li { text-align: center; }
|
172
|
+
ul.fullTree li.next:before { font-size: 1.2em; content: '⬆'; color: #bbb; display: block; margin-top: 3px; }
|
173
|
+
|
174
|
+
#search { position: absolute; right: 14px; top: 0px; }
|
175
|
+
#search a:link, #search a:visited {
|
176
|
+
display: block; float: left; margin-right: 4px;
|
177
|
+
padding: 8px 10px; text-decoration: none; color: #05a; background: #eaeaff;
|
178
|
+
border: 1px solid #d8d8e5;
|
179
|
+
-moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
|
180
|
+
-webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
|
181
|
+
}
|
182
|
+
#search a:hover { background: #eef; color: #06b; }
|
183
|
+
#search a.active {
|
184
|
+
background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
|
185
|
+
-moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
|
186
|
+
-webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
|
187
|
+
}
|
188
|
+
#search a.inactive { color: #999; }
|
189
|
+
.inheritanceTree, .toggleDefines { float: right; }
|
190
|
+
|
191
|
+
#menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
|
192
|
+
#menu .title, #menu a { font-size: 0.7em; }
|
193
|
+
#menu .title { color: #555; }
|
194
|
+
#menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
195
|
+
#menu a:hover { color: #05a; }
|
196
|
+
|
197
|
+
#footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
|
198
|
+
#footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
199
|
+
#footer a:hover { color: #05a; }
|
200
|
+
|
201
|
+
#listing ul.alpha { font-size: 1.1em; }
|
202
|
+
#listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
|
203
|
+
#listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
|
204
|
+
#listing ul.alpha ul { margin: 0; padding: 0; }
|
205
|
+
#listing ul small { color: #666; font-size: 0.7em; }
|
206
|
+
|
207
|
+
li.r1 { background: #f0f0f0; }
|
208
|
+
li.r2 { background: #fafafa; }
|
209
|
+
|
210
|
+
#search_frame {
|
211
|
+
background: #fff;
|
212
|
+
display: none;
|
213
|
+
position: absolute;
|
214
|
+
top: 36px;
|
215
|
+
right: 18px;
|
216
|
+
width: 500px;
|
217
|
+
height: 80%;
|
218
|
+
overflow-y: scroll;
|
219
|
+
border: 1px solid #999;
|
220
|
+
border-collapse: collapse;
|
221
|
+
-webkit-box-shadow: -2px 5px 25px #aaa;
|
222
|
+
-moz-box-shadow: -2px 5px 25px #aaa;
|
223
|
+
-moz-border-radius: 2px;
|
224
|
+
-webkit-border-radius: 2px;
|
225
|
+
}
|
226
|
+
|
227
|
+
#content ul.summary li.deprecated a:link,
|
228
|
+
#content ul.summary li.deprecated a:visited { text-decoration: line-through; font-style: italic; }
|
229
|
+
|
230
|
+
/* syntax highlighting */
|
231
|
+
.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
|
232
|
+
#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
|
233
|
+
#filecontents pre.code, .docstring pre.code { display: block; }
|
234
|
+
.source_code .lines { padding-right: 12px; color: #555; text-align: right; }
|
235
|
+
#filecontents pre.code, .docstring pre.code,
|
236
|
+
.tags .example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
|
237
|
+
pre.code { color: #000; }
|
238
|
+
pre.code .info.file { color: #555; }
|
239
|
+
pre.code .val { color: #036A07; }
|
240
|
+
pre.code .tstring_content,
|
241
|
+
pre.code .heredoc_beg, pre.code .heredoc_end,
|
242
|
+
pre.code .qwords_beg, pre.code .qwords_end,
|
243
|
+
pre.code .tstring, pre.code .dstring { color: #036A07; }
|
244
|
+
pre.code .fid, pre.code .id.new, pre.code .id.to_s,
|
245
|
+
pre.code .id.to_sym, pre.code .id.to_f,
|
246
|
+
pre.code .dot + pre.code .id,
|
247
|
+
pre.code .id.to_i pre.code .id.each { color: #0085FF; }
|
248
|
+
pre.code .comment { color: #0066FF; }
|
249
|
+
pre.code .const, pre.code .constant { color: #585CF6; }
|
250
|
+
pre.code .symbol { color: #C5060B; }
|
251
|
+
pre.code .kw,
|
252
|
+
pre.code .label,
|
253
|
+
pre.code .id.require,
|
254
|
+
pre.code .id.extend,
|
255
|
+
pre.code .id.include { color: #0000FF; }
|
256
|
+
pre.code .ivar { color: #318495; }
|
257
|
+
pre.code .gvar,
|
258
|
+
pre.code .id.backref,
|
259
|
+
pre.code .id.nth_ref { color: #6D79DE; }
|
260
|
+
pre.code .regexp, .dregexp { color: #036A07; }
|
261
|
+
|