docspring 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +4 -4
- data/README.md +11 -5
- data/docs/CreateHtmlSubmissionData.md +3 -1
- data/docs/CreatePdfSubmissionData.md +3 -1
- data/docs/PDFApi.md +156 -10
- data/docs/PublishVersionData.md +20 -0
- data/docs/RestoreVersionData.md +18 -0
- data/docs/Submission.md +4 -0
- data/docs/SubmissionPreview.md +4 -0
- data/docs/Template.md +15 -1
- data/docs/TemplateDeleteResponse.md +24 -0
- data/docs/TemplatePreview.md +13 -1
- data/docs/TemplatePublishVersionResponse.md +22 -0
- data/lib/docspring/api/pdf_api.rb +152 -5
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/models/combined_submission_action.rb +1 -5
- data/lib/docspring/models/create_html_submission_data.rb +13 -4
- data/lib/docspring/models/create_pdf_submission_data.rb +13 -4
- data/lib/docspring/models/publish_version_data.rb +230 -0
- data/lib/docspring/models/restore_version_data.rb +221 -0
- data/lib/docspring/models/submission.rb +41 -1
- data/lib/docspring/models/submission_data_request_event.rb +1 -5
- data/lib/docspring/models/submission_preview.rb +41 -1
- data/lib/docspring/models/template.rb +106 -4
- data/lib/docspring/models/template_delete_response.rb +287 -0
- data/lib/docspring/models/template_preview.rb +88 -4
- data/lib/docspring/models/template_publish_version_response.rb +282 -0
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring.rb +4 -0
- data/spec/api/pdf_api_spec.rb +27 -2
- data/spec/models/create_html_submission_data_spec.rb +6 -0
- data/spec/models/create_pdf_submission_data_spec.rb +6 -0
- data/spec/models/publish_version_data_spec.rb +42 -0
- data/spec/models/restore_version_data_spec.rb +36 -0
- data/spec/models/submission_preview_spec.rb +16 -0
- data/spec/models/submission_spec.rb +16 -0
- data/spec/models/template_delete_response_spec.rb +58 -0
- data/spec/models/template_preview_spec.rb +40 -0
- data/spec/models/template_publish_version_response_spec.rb +52 -0
- data/spec/models/template_spec.rb +46 -0
- data/vendor/bundle/ruby/3.3.0/bin/irb +29 -0
- data/vendor/bundle/ruby/3.3.0/bin/rdbg +29 -0
- data/vendor/bundle/ruby/3.3.0/bin/rdoc +29 -0
- data/vendor/bundle/ruby/3.3.0/bin/ri +29 -0
- data/vendor/bundle/ruby/3.3.0/cache/ast-2.4.3.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/debug-1.10.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/io-console-0.8.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/irb-1.15.1.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/parser-3.3.7.2.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/pp-0.6.2.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/prettyprint-0.2.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/rdoc-6.12.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/reline-0.6.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/debug-1.10.0/debug/debug.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/debug-1.10.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/debug-1.10.0/gem_make.out +19 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/gem_make.out +31 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/io/console.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/mkmf.log +447 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/LICENSE.MIT +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/README.YARD.md +12 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/node.rb +268 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/processor/mixin.rb +288 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/processor.rb +12 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/sexp.rb +30 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/CONTRIBUTING.md +573 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/Gemfile +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/README.md +970 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/Rakefile +57 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/TODO.md +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/debug.gemspec +33 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/exe/rdbg +53 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/Makefile +270 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/debug.c +228 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/debug_version.h +1 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/extconf.rb +27 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/iseq_collector.c +93 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/abbrev_command.rb +77 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/breakpoint.rb +556 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/client.rb +263 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/color.rb +123 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/config.rb +590 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/console.rb +213 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/dap_custom/traceInspector.rb +336 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/debug.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/frame_info.rb +188 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/irb_integration.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/local.rb +115 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/open.rb +13 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/open_nonstop.rb +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/prelude.rb +50 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/server.rb +534 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/server_cdp.rb +1348 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/server_dap.rb +1108 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/session.rb +2659 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/source_repository.rb +150 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/start.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/thread_client.rb +1455 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/tracer.rb +241 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/version.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/misc/README.md.erb +636 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/.document +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/BSDL +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/COPYING +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/README.md +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/Makefile +272 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/console.c +1969 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/extconf.rb +61 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/win32_vk.inc +1390 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/lib/io/console/size.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/lib/io/console.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/Gemfile +29 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/README.md +125 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/Rakefile +52 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/bin/console +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/bin/setup +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/doc/irb/irb-tools.rd.ja +184 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/doc/irb/irb.rd.ja +425 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/exe/irb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/irb.gemspec +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/cmd/nop.rb +4 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/color.rb +263 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/color_printer.rb +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/backtrace.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/base.rb +60 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/break.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/catch.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/cd.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/chws.rb +40 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/context.rb +16 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/continue.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/copy.rb +73 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/debug.rb +73 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/delete.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/disable_irb.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/edit.rb +63 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/exit.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/finish.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/force_exit.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/help.rb +83 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/history.rb +45 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/info.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/internal_helpers.rb +27 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/irb_info.rb +33 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/load.rb +91 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/ls.rb +167 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/measure.rb +49 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/next.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/pushws.rb +65 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/show_doc.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/show_source.rb +74 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/step.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/subirb.rb +123 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/whereami.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/completion.rb +504 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/context.rb +751 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/debug/ui.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/debug.rb +127 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/default_commands.rb +279 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/easter-egg.rb +152 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/change-ws.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/eval_history.rb +149 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/loader.rb +127 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/multi-irb.rb +258 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/tracer.rb +39 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/use-loader.rb +67 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/workspaces.rb +36 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/frame.rb +80 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/help.rb +28 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/helper_method/base.rb +16 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/helper_method/conf.rb +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/helper_method.rb +29 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/history.rb +116 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/init.rb +540 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/input-method.rb +515 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/inspector.rb +136 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/error.rb +52 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/help-message +55 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/ja/error.rb +53 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/ja/help-message +58 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/locale.rb +153 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/nesting_parser.rb +239 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/notifier.rb +230 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/output-method.rb +80 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/pager.rb +213 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ruby-lex.rb +476 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ruby_logo.aa +118 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/source_finder.rb +138 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/statement.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/version.rb +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/workspace.rb +171 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ws-for-case-2.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/xmp.rb +164 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb.rb +736 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/man/irb.1 +292 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/LICENSE.txt +26 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/bin/ruby-parse +7 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/bin/ruby-rewrite +7 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/gauntlet_parser.rb +123 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/all.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ast/node.rb +40 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ast/processor.rb +293 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/base.rb +291 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/builders/default.rb +2338 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/clobbering_error.rb +13 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/color.rb +32 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/context.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/current.rb +137 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/current_arg_stack.rb +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/deprecation.rb +13 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/diagnostic/engine.rb +104 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/diagnostic.rb +163 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/dedenter.rb +88 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/explanation.rb +55 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/literal.rb +284 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/stack_state.rb +49 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer-F0.rb +12922 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer-F1.rb +14875 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer-strings.rb +5424 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/macruby.rb +9634 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/max_numparam_stack.rb +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/messages.rb +125 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/meta.rb +48 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/rewriter.rb +105 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby18.rb +9272 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby19.rb +9558 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby20.rb +10229 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby21.rb +10203 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby22.rb +10302 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby23.rb +10322 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby24.rb +10454 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby25.rb +10374 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby26.rb +10352 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby27.rb +11947 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby30.rb +12243 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby31.rb +12716 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby32.rb +12704 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby33.rb +12589 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby34.rb +12596 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/rubymotion.rb +9515 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/runner/ruby_parse.rb +157 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/runner/ruby_rewrite.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/runner.rb +299 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/buffer.rb +369 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/comment/associator.rb +233 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/comment.rb +134 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/collection.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/condition.rb +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/constant.rb +32 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/definition.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/for.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/heredoc.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/index.rb +33 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/keyword.rb +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/method_definition.rb +25 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/objc_kwarg.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/operator.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/rescue_body.rb +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/send.rb +36 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/ternary.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/variable.rb +31 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map.rb +186 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/range.rb +326 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/rewriter/action.rb +44 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/rewriter.rb +513 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/tree_rewriter/action.rb +243 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/tree_rewriter.rb +431 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/static_environment.rb +134 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/syntax_error.rb +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/tree_rewriter.rb +133 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/unknown_encoding_in_magic_comment_error.rb +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/variables_stack.rb +36 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/version.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser.rb +91 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/parser.gemspec +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/BSDL +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/COPYING +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/lib/pp.rb +699 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/pp.gemspec +35 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/.github/dependabot.yml +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/.github/workflows/test.yml +41 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/.gitignore +8 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/Gemfile +4 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/README.md +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/Rakefile +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/bin/console +14 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/bin/setup +8 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/lib/prettyprint.rb +558 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/prettyprint.gemspec +29 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/CONTRIBUTING.rdoc +219 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/CVE-2013-0256.rdoc +49 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/ExampleMarkdown.md +39 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/ExampleRDoc.rdoc +210 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/History.rdoc +1668 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/LEGAL.rdoc +50 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/LICENSE.rdoc +59 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/README.rdoc +142 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/RI.md +842 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/TODO.rdoc +60 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/exe/rdoc +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/exe/ri +12 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/alias.rb +111 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/anon_class.rb +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/any_method.rb +379 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/attr.rb +175 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/class_module.rb +871 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/constant.rb +186 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/context/section.rb +175 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/context.rb +1264 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/extend.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/ghost_method.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/include.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/meta_method.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/method_attr.rb +430 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/mixin.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/normal_class.rb +92 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/normal_module.rb +73 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/require.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/single_class.rb +30 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/top_level.rb +291 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object.rb +426 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_objects.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/comment.rb +239 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/cross_reference.rb +228 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/encoding.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/erb_partial.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/erbio.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/darkfish.rb +824 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/json_index.rb +300 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/markup.rb +159 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot/message_extractor.rb +68 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot/po.rb +84 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot/po_entry.rb +141 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot.rb +99 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/ri.rb +30 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_head.rhtml +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +34 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +32 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +39 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +3 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/class.rhtml +206 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/css/fonts.css +167 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/css/rdoc.css +668 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/index.rhtml +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/js/darkfish.js +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/js/search.js +110 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/page.rhtml +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +65 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +70 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/json_index/js/navigation.js +105 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/json_index/js/searcher.js +229 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/i18n/locale.rb +102 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/i18n/text.rb +126 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/i18n.rb +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/known_classes.rb +74 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown/entities.rb +2131 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown/literals.kpeg +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown/literals.rb +454 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown.kpeg +1244 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown.rb +16793 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attr_changer.rb +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attr_span.rb +35 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attribute_manager.rb +405 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attributes.rb +70 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/blank_line.rb +27 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/block_quote.rb +14 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/document.rb +164 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/formatter.rb +272 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/hard_break.rb +31 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/heading.rb +78 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/include.rb +42 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/indented_paragraph.rb +47 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/list.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/list_item.rb +99 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/paragraph.rb +28 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/parser.rb +585 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/pre_process.rb +318 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/raw.rb +69 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/regexp_handling.rb +40 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/rule.rb +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/table.rb +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_ansi.rb +93 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_bs.rb +102 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_html.rb +452 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_html_crossref.rb +226 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_html_snippet.rb +287 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_joined_paragraph.rb +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_label.rb +74 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_markdown.rb +191 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_rdoc.rb +352 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_table_of_contents.rb +88 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_test.rb +69 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_tt_only.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/verbatim.rb +83 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup.rb +240 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/options.rb +1397 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/c.rb +1260 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/changelog.rb +350 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/markdown.rb +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/prism_ruby.rb +1099 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/rd.rb +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/ripper_state_lex.rb +302 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/ruby.rb +2381 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/ruby_tools.rb +165 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/simple.rb +61 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/text.rb +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser.rb +297 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/block_parser.rb +1706 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/block_parser.ry +643 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/inline.rb +71 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/inline_parser.rb +1854 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/inline_parser.ry +593 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd.rb +99 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rdoc.rb +566 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/driver.rb +1558 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/formatter.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/paths.rb +171 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/store.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/task.rb +71 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri.rb +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rubygems_hook.rb +330 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/servlet.rb +451 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats/normal.rb +58 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats/quiet.rb +59 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats/verbose.rb +44 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats.rb +461 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/store.rb +1001 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/task.rb +354 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/text.rb +322 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/token_stream.rb +118 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/tom_doc.rb +257 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/version.rb +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc.rb +211 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rubygems_plugin.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/man/ri.1 +247 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/BSDL +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/COPYING +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/README.md +94 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/config.rb +373 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/face.rb +199 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/history.rb +76 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io/ansi.rb +325 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io/dumb.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io/windows.rb +530 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io.rb +55 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/base.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/composite.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/emacs.rb +517 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/vi_command.rb +518 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/vi_insert.rb +517 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor.rb +8 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_stroke.rb +119 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/kill_ring.rb +125 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/line_editor.rb +2382 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/unicode/east_asian_width.rb +1267 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/unicode.rb +415 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/version.rb +3 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline.rb +519 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/license_of_rb-readline +25 -0
- data/vendor/bundle/ruby/3.3.0/plugins/rdoc_plugin.rb +1 -0
- data/vendor/bundle/ruby/3.3.0/specifications/ast-2.4.3.gemspec +29 -0
- data/vendor/bundle/ruby/3.3.0/specifications/debug-1.10.0.gemspec +32 -0
- data/vendor/bundle/ruby/3.3.0/specifications/io-console-0.8.0.gemspec +25 -0
- data/vendor/bundle/ruby/3.3.0/specifications/irb-1.15.1.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/specifications/parser-3.3.7.2.gemspec +37 -0
- data/vendor/bundle/ruby/3.3.0/specifications/pp-0.6.2.gemspec +27 -0
- data/vendor/bundle/ruby/3.3.0/specifications/prettyprint-0.2.0.gemspec +23 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rdoc-6.12.0.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/specifications/reline-0.6.0.gemspec +26 -0
- metadata +499 -3
@@ -0,0 +1,842 @@
|
|
1
|
+
# `ri`: Ruby Information
|
2
|
+
|
3
|
+
`ri` (<b>r</b>uby <b>i</b>nformation) is the Ruby command-line utility
|
4
|
+
that gives fast and easy on-line access to Ruby documentation.
|
5
|
+
|
6
|
+
`ri` can show documentation for Ruby itself and for its installed gems:
|
7
|
+
|
8
|
+
- A **class** or **module**:
|
9
|
+
text associated with the class or module definition
|
10
|
+
in a source file (`.rb` or `.c`).
|
11
|
+
- One or more **methods**:
|
12
|
+
text associated with method definitions
|
13
|
+
in source files (`.rb` and `.c`).
|
14
|
+
- A **page**:
|
15
|
+
text from a stand-alone documentation file
|
16
|
+
(`.rdoc` or `.md`, or sometimes other).
|
17
|
+
|
18
|
+
Examples (output omitted):
|
19
|
+
|
20
|
+
```sh
|
21
|
+
$ ri Hash # Document for class Hash.
|
22
|
+
$ ri Array#sort # Document for instance method sort in class Array.
|
23
|
+
$ ri read # Documents for methods ::read and #read in all classes and modules.
|
24
|
+
$ ri ruby:dig_methods # Document for page dig_methods.
|
25
|
+
```
|
26
|
+
|
27
|
+
`ri` can also show lists of:
|
28
|
+
|
29
|
+
- **classes** and **modules**:
|
30
|
+
full or partial list.
|
31
|
+
- **pages**:
|
32
|
+
for Ruby or for an installed gem.
|
33
|
+
|
34
|
+
Examples (output omitted):
|
35
|
+
|
36
|
+
```sh
|
37
|
+
$ ri --list # List of classes and modules.
|
38
|
+
$ ri ruby: # List of Ruby pages.
|
39
|
+
```
|
40
|
+
|
41
|
+
## Why `ri`?
|
42
|
+
|
43
|
+
Using `ri` may have advantages over using
|
44
|
+
the [Ruby online documentation](https://docs.ruby-lang.org/en/master):
|
45
|
+
|
46
|
+
- The `ri` documentation is always available, even when you do not have internet access
|
47
|
+
(think: airplane mode).
|
48
|
+
- If you are working in a terminal window, typing `ri _whatever_` (or just `ri`)
|
49
|
+
may be faster than navigating to a browser window and searching for documentation.
|
50
|
+
- If you are working in an
|
51
|
+
[irb \(interactive Ruby\)](https://docs.ruby-lang.org/en/master/IRB.html)
|
52
|
+
session, you _already_ have immediate access to `ri`:
|
53
|
+
just type `'show_doc'`.
|
54
|
+
|
55
|
+
## Modes
|
56
|
+
|
57
|
+
There are two `ri` modes:
|
58
|
+
|
59
|
+
- <i>Static mode</i>:
|
60
|
+
In general, `ri` responds in its static mode
|
61
|
+
if a _name_ is given;
|
62
|
+
it shows results and exits (as in the examples above).
|
63
|
+
See [Static Mode][1].
|
64
|
+
- <i>Interactive mode</i>:
|
65
|
+
In general, `ri` enters its interactive mode
|
66
|
+
if no _name_ is given;
|
67
|
+
in interactive mode, `ri` shows results and waits for another command:
|
68
|
+
|
69
|
+
```sh
|
70
|
+
$ ri
|
71
|
+
Enter the method name you want to look up.
|
72
|
+
You can use tab to autocomplete.
|
73
|
+
Enter a blank line to exit.
|
74
|
+
>>
|
75
|
+
```
|
76
|
+
|
77
|
+
See [Interactive Mode][2].
|
78
|
+
|
79
|
+
## Names
|
80
|
+
|
81
|
+
In both modes, static and interactive,
|
82
|
+
`ri` responds to an input _name_ that specifies what is to be displayed:
|
83
|
+
a document, multiple documents, or other information:
|
84
|
+
|
85
|
+
- Static mode (in the shell): type `'ri _name_'`;
|
86
|
+
examples (output omitted):
|
87
|
+
|
88
|
+
```sh
|
89
|
+
$ ri File
|
90
|
+
$ ri IO#readlines
|
91
|
+
$ ri ruby:
|
92
|
+
```
|
93
|
+
|
94
|
+
- Interactive mode (already in `ri`): just type the _name_;
|
95
|
+
examples (output omitted):
|
96
|
+
|
97
|
+
```sh
|
98
|
+
$ ri
|
99
|
+
Enter the method name you want to look up.
|
100
|
+
You can use tab to autocomplete.
|
101
|
+
Enter a blank line to exit.
|
102
|
+
>> File
|
103
|
+
>> IO#readlines
|
104
|
+
>> ruby:
|
105
|
+
```
|
106
|
+
|
107
|
+
### Names for Class and Module Documents
|
108
|
+
|
109
|
+
These example `ri` commands cite names for class and module documents
|
110
|
+
(see [details and examples][3]):
|
111
|
+
|
112
|
+
| Command | Shows |
|
113
|
+
|------------------------------|------------------------------------------------------------|
|
114
|
+
| ri File | Document for Ruby class File. |
|
115
|
+
| ri File::Stat | Document for Ruby nested class File::Stat. |
|
116
|
+
| ri Enumerable | Document for Ruby module Enumerable. |
|
117
|
+
| ri Arr | Document for Ruby class Array (unique initial characters). |
|
118
|
+
| ri Nokogiri::HTML4::Document | Document for gem class Nokogiri::HTML4::Document. |
|
119
|
+
| ri Nokogiri | Document for gem module Nokogiri. |
|
120
|
+
<br>
|
121
|
+
|
122
|
+
If [option \\--all][4]
|
123
|
+
is in effect, documents for the methods in the named class or module
|
124
|
+
are included in the display.
|
125
|
+
|
126
|
+
### Names for Method Documents
|
127
|
+
|
128
|
+
These example `ri` commands cite names for method documents
|
129
|
+
(see [details and examples][5]):
|
130
|
+
|
131
|
+
| Command | Shows |
|
132
|
+
|--------------------------------------|----------------------------------------------------------------------------------|
|
133
|
+
| ri IO::readlines | Document for Ruby class method IO::readlines. |
|
134
|
+
| ri IO#readlines | Document for Ruby instance method IO::readlines. |
|
135
|
+
| ri IO.readlines | Documents for Ruby instance method IO::readlines and class method IO::readlines. |
|
136
|
+
| ri ::readlines | Documents for all class methods ::readlines. |
|
137
|
+
| ri #readlines | Documents for all instance methods #readlines. |
|
138
|
+
| ri .readlines, ri readlines | Documents for class methods ::readlines and instance methods #readlines. |
|
139
|
+
| ri Nokogiri::HTML4::Document::parse | Document for gem class method Nokogiri::HTML4::Document::parse. |
|
140
|
+
| ri Nokogiri::HTML4::Document#fragment | Document for gem instance method Nokogiri::HTML4::Document#fragment. |
|
141
|
+
<br>
|
142
|
+
|
143
|
+
### Names for Page Documents
|
144
|
+
|
145
|
+
These example `ri` commands cite names for page documents
|
146
|
+
(see [details and examples][6]):
|
147
|
+
|
148
|
+
| Command | Shows |
|
149
|
+
|--------------------------------|--------------------------------------------------|
|
150
|
+
| ri ruby:syntax/assignment.rdoc | Document for Ruby page assignment. |
|
151
|
+
| ri ruby:syntax/assignment | Same document, if no other syntax/assignment.*. |
|
152
|
+
| ri ruby:assignment | Same document, if no other */assignment.*. |
|
153
|
+
| ri nokogiri:README.md | Document for page README.md. |
|
154
|
+
<br>
|
155
|
+
|
156
|
+
### Names for Lists
|
157
|
+
|
158
|
+
These example `ri` commands cite names for lists
|
159
|
+
(see [details and examples][7]):
|
160
|
+
|
161
|
+
| Command | Shows |
|
162
|
+
|---------------|-------------------------|
|
163
|
+
| ri ruby: | List of Ruby pages. |
|
164
|
+
| ri nokogiri: | List of Nokogiri pages. |
|
165
|
+
<br>
|
166
|
+
|
167
|
+
There are more lists available;
|
168
|
+
see [option \\--list][8].
|
169
|
+
|
170
|
+
## Pro Tips
|
171
|
+
|
172
|
+
### `ri` at the Ready
|
173
|
+
|
174
|
+
If you are a frequent `ri` user,
|
175
|
+
you can save time by keeping open a dedicated command window
|
176
|
+
with either of:
|
177
|
+
|
178
|
+
- A running [interactive ri][2] session.
|
179
|
+
- A running [irb session][9];
|
180
|
+
type `'show_doc'` to enter `ri`, newline to exit.
|
181
|
+
|
182
|
+
When you switch to that window, `ri` is ready to respond quickly,
|
183
|
+
without the performance overhead of re-reading `ri` sources.
|
184
|
+
|
185
|
+
### Output Filters
|
186
|
+
|
187
|
+
The `pager` value actually need not be simply the path to an executable;
|
188
|
+
it's actually a full-fledged command line,
|
189
|
+
and so may include not only the executable path,
|
190
|
+
but also whatever options and arguments that executable accepts.
|
191
|
+
|
192
|
+
You can, for example, set the pager value to `'grep . | less'`,
|
193
|
+
which will exclude blank lines (thus saving screen space)
|
194
|
+
before piping the result to `less`;
|
195
|
+
example (output omitted):
|
196
|
+
|
197
|
+
```sh
|
198
|
+
$ RI_PAGER="grep . | less" ri Array
|
199
|
+
```
|
200
|
+
|
201
|
+
See the documentation for your chosen pager programs
|
202
|
+
(e.g, type `'grep --help'`, `'less --help'`).
|
203
|
+
|
204
|
+
### Links in `ri` Output
|
205
|
+
|
206
|
+
#### Implicit Link
|
207
|
+
|
208
|
+
When you see:
|
209
|
+
|
210
|
+
- `'IO::readlines'`, `'IO#readlines'`, `'IO.readlines'`:
|
211
|
+
use that same text as the _name_ in an `ri` command.
|
212
|
+
|
213
|
+
Examples (output omitted):
|
214
|
+
|
215
|
+
```sh
|
216
|
+
$ ri IO::readlines
|
217
|
+
$ ri IO#readlines
|
218
|
+
$ ri IO.readlines
|
219
|
+
```
|
220
|
+
|
221
|
+
- `'#read'`, `'::read'`, `'.read'`:
|
222
|
+
you're likely already in the `ri` document for a class or module,
|
223
|
+
or for a method in a class or module;
|
224
|
+
use that same text with the name of the class or module (such as `'File'`)
|
225
|
+
as the _name_ in an `ri` command.
|
226
|
+
|
227
|
+
Examples (output omitted):
|
228
|
+
|
229
|
+
```sh
|
230
|
+
$ ri File::read
|
231
|
+
$ ri File#read
|
232
|
+
$ ri File.read
|
233
|
+
```
|
234
|
+
|
235
|
+
#### Explicit Link
|
236
|
+
|
237
|
+
When you see:
|
238
|
+
|
239
|
+
- `'{Dig Methods}[rdoc-ref:doc/dig_methods.rdoc]'`:
|
240
|
+
use the trailing part of the `'[rdoc-ref:doc/'` in an `ri` command
|
241
|
+
for a Ruby document.
|
242
|
+
|
243
|
+
Example (output omitted):
|
244
|
+
|
245
|
+
```sh
|
246
|
+
$ ri ruby:dig_methods.rdoc
|
247
|
+
```
|
248
|
+
|
249
|
+
- `'{Table (information)}[https://en.wikipedia.org/wiki/Table_(information)]'`:
|
250
|
+
go to the given URL in your browser.
|
251
|
+
|
252
|
+
## About the Examples
|
253
|
+
|
254
|
+
- `ri` output can be large;
|
255
|
+
to save space, an example may pipe it to one of these:
|
256
|
+
|
257
|
+
- [head](https://www.man7.org/linux/man-pages/man1/head.1.html): leading lines only.
|
258
|
+
- [tail](https://www.man7.org/linux/man-pages/man1/tail.1.html): trailing lines only.
|
259
|
+
- [wc -l](https://www.man7.org/linux/man-pages/man1/wc.1.html): line count only.
|
260
|
+
- [grep](https://www.man7.org/linux/man-pages/man1/grep.1.html): selected lines only.
|
261
|
+
|
262
|
+
- An example that involves a gem assumes that gems `nokogiri` and `minitest` are installed.
|
263
|
+
|
264
|
+
## `ri` Documents
|
265
|
+
|
266
|
+
This section outlines what you can expect to find
|
267
|
+
in the `ri` document for a class, module, method, or page.
|
268
|
+
|
269
|
+
See also:
|
270
|
+
|
271
|
+
- [Pager][10].
|
272
|
+
- [Links in ri Output][11].
|
273
|
+
|
274
|
+
### Class and Module Documents
|
275
|
+
|
276
|
+
The document for a class or module shows:
|
277
|
+
|
278
|
+
- The class or module name, along with its parent class if any.
|
279
|
+
- Where it's defined (Ruby core or gem).
|
280
|
+
- When each exists:
|
281
|
+
|
282
|
+
- The names of its included modules.
|
283
|
+
- The text of its embedded documentation.
|
284
|
+
- Its constants.
|
285
|
+
- Its class methods.
|
286
|
+
- Its instance methods.
|
287
|
+
|
288
|
+
Examples:
|
289
|
+
|
290
|
+
- Ruby class `Array`:
|
291
|
+
|
292
|
+
```sh
|
293
|
+
$ ri Array | head
|
294
|
+
= Array < Object
|
295
|
+
|
296
|
+
------------------------------------------------------------------------
|
297
|
+
= Includes:
|
298
|
+
Enumerable (from ruby core)
|
299
|
+
|
300
|
+
(from ruby core)
|
301
|
+
------------------------------------------------------------------------
|
302
|
+
An Array is an ordered, integer-indexed collection of objects, called
|
303
|
+
elements. Any object may be an Array element.
|
304
|
+
```
|
305
|
+
|
306
|
+
- Gem module `Nokogiri`:
|
307
|
+
|
308
|
+
```sh
|
309
|
+
$ ri Nokogiri | head
|
310
|
+
= Nokogiri
|
311
|
+
|
312
|
+
(from gem nokogiri-1.16.2-x86_64-linux)
|
313
|
+
------------------------------------------------------------------------
|
314
|
+
|
315
|
+
Nokogiri parses and searches XML/HTML very quickly, and also has
|
316
|
+
correctly implemented CSS3 selector support as well as XPath 1.0
|
317
|
+
support.
|
318
|
+
|
319
|
+
Parsing a document returns either a Nokogiri::XML::Document, or a
|
320
|
+
```
|
321
|
+
|
322
|
+
The document typically includes certain headings,
|
323
|
+
which may be useful for searching:
|
324
|
+
|
325
|
+
```sh
|
326
|
+
$ ri IO | grep "^= "
|
327
|
+
= IO < Object
|
328
|
+
= Includes:
|
329
|
+
= Constants:
|
330
|
+
= Class methods:
|
331
|
+
= Instance methods:
|
332
|
+
```
|
333
|
+
|
334
|
+
### Method Documents
|
335
|
+
|
336
|
+
The document for a method includes:
|
337
|
+
|
338
|
+
- The source of the method: `'(from ruby core)'` or `'(from gem _gem_)'`.
|
339
|
+
- The calling sequence(s) for the method.
|
340
|
+
- The text of its embedded documentation (if it exists).
|
341
|
+
|
342
|
+
Examples:
|
343
|
+
|
344
|
+
```sh
|
345
|
+
$ ri IO#read | head
|
346
|
+
= IO#read
|
347
|
+
|
348
|
+
(from ruby core)
|
349
|
+
------------------------------------------------------------------------
|
350
|
+
ios.read([length [, outbuf]]) -> string, outbuf, or nil
|
351
|
+
|
352
|
+
------------------------------------------------------------------------
|
353
|
+
|
354
|
+
Reads length bytes from the I/O stream.
|
355
|
+
```
|
356
|
+
|
357
|
+
```sh
|
358
|
+
$ ri Nokogiri::parse | head
|
359
|
+
= Nokogiri::parse
|
360
|
+
|
361
|
+
(from gem nokogiri-1.16.2-x86_64-linux)
|
362
|
+
------------------------------------------------------------------------
|
363
|
+
parse(string, url = nil, encoding = nil, options = nil) { |doc| ... }
|
364
|
+
|
365
|
+
------------------------------------------------------------------------
|
366
|
+
|
367
|
+
Parse an HTML or XML document. string contains the document.
|
368
|
+
```
|
369
|
+
|
370
|
+
The output for a _name_ that cites methods includes the document
|
371
|
+
for each found implementation;
|
372
|
+
the number of such implementations depends on the _name_:
|
373
|
+
|
374
|
+
- Within a class:
|
375
|
+
|
376
|
+
Each of these commands shows documents
|
377
|
+
for methods in Ruby class `IO` (output omitted):
|
378
|
+
|
379
|
+
```sh
|
380
|
+
$ ri IO::readlines # Class method ::readlines.
|
381
|
+
$ ri IO#readlines # Instance method #readlines.
|
382
|
+
$ ri IO.readlines # Both of above.
|
383
|
+
```
|
384
|
+
|
385
|
+
- In all classes:
|
386
|
+
|
387
|
+
Each of these commands shows documents
|
388
|
+
for methods in all classes (output omitted):
|
389
|
+
|
390
|
+
```sh
|
391
|
+
$ ri ::readlines # Class method ::readlines.
|
392
|
+
$ ri \#readlines # Instance method #readlines.
|
393
|
+
$ ri .readlines # Both of above.
|
394
|
+
```
|
395
|
+
|
396
|
+
For these all-classes commands,
|
397
|
+
the output is organized into sections,
|
398
|
+
one for each found method (output filtered to show sections):
|
399
|
+
|
400
|
+
```sh
|
401
|
+
$ ri ::readlines | grep "= Implementation"
|
402
|
+
=== Implementation from CSV
|
403
|
+
=== Implementation from IO
|
404
|
+
```
|
405
|
+
|
406
|
+
```sh
|
407
|
+
$ ri \#readlines | grep "= Implementation"
|
408
|
+
=== Implementation from ARGF
|
409
|
+
=== Implementation from CSV
|
410
|
+
=== Implementation from IO
|
411
|
+
=== Implementation from Kernel
|
412
|
+
=== Implementation from Buffering
|
413
|
+
=== Implementation from Pathname
|
414
|
+
=== Implementation from StringIO
|
415
|
+
=== Implementation from GzipReader
|
416
|
+
```
|
417
|
+
|
418
|
+
```sh
|
419
|
+
$ ri .readlines | grep "= Implementation"
|
420
|
+
=== Implementation from ARGF
|
421
|
+
=== Implementation from CSV
|
422
|
+
=== Implementation from CSV
|
423
|
+
=== Implementation from IO
|
424
|
+
=== Implementation from IO
|
425
|
+
=== Implementation from Kernel
|
426
|
+
=== Implementation from Buffering
|
427
|
+
=== Implementation from Pathname
|
428
|
+
=== Implementation from StringIO
|
429
|
+
=== Implementation from GzipReader
|
430
|
+
```
|
431
|
+
|
432
|
+
### Page Documents
|
433
|
+
|
434
|
+
The document for a Ruby page is the text from the `.rdoc` or `.md` source
|
435
|
+
for that page:
|
436
|
+
|
437
|
+
```sh
|
438
|
+
$ ri ruby:dig_methods | head
|
439
|
+
= Dig Methods
|
440
|
+
|
441
|
+
Ruby's dig methods are useful for accessing nested data structures.
|
442
|
+
|
443
|
+
Consider this data:
|
444
|
+
item = {
|
445
|
+
id: "0001",
|
446
|
+
type: "donut",
|
447
|
+
name: "Cake",
|
448
|
+
ppu: 0.55,
|
449
|
+
```
|
450
|
+
|
451
|
+
The document for a gem page is whatever the gem has generated
|
452
|
+
for the page:
|
453
|
+
|
454
|
+
```sh
|
455
|
+
$ ri minitest:README | head
|
456
|
+
= minitest/{test,spec,mock,benchmark}
|
457
|
+
|
458
|
+
home:
|
459
|
+
https://github.com/minitest/minitest
|
460
|
+
|
461
|
+
bugs:
|
462
|
+
https://github.com/minitest/minitest/issues
|
463
|
+
|
464
|
+
rdoc:
|
465
|
+
https://docs.seattlerb.org/minitest
|
466
|
+
```
|
467
|
+
|
468
|
+
## `ri` Lists
|
469
|
+
|
470
|
+
The list of Ruby pages is available via _name_ `'ruby:'`:
|
471
|
+
|
472
|
+
```sh
|
473
|
+
$ ri ruby: | head
|
474
|
+
= Pages in ruby core
|
475
|
+
|
476
|
+
CONTRIBUTING.md
|
477
|
+
COPYING
|
478
|
+
COPYING.ja
|
479
|
+
LEGAL
|
480
|
+
NEWS-1.8.7
|
481
|
+
NEWS-1.9.1
|
482
|
+
NEWS-1.9.2
|
483
|
+
NEWS-1.9.3
|
484
|
+
```
|
485
|
+
|
486
|
+
```sh
|
487
|
+
$ ri ruby: | tail
|
488
|
+
syntax/control_expressions.rdoc
|
489
|
+
syntax/exceptions.rdoc
|
490
|
+
syntax/literals.rdoc
|
491
|
+
syntax/methods.rdoc
|
492
|
+
syntax/miscellaneous.rdoc
|
493
|
+
syntax/modules_and_classes.rdoc
|
494
|
+
syntax/pattern_matching.rdoc
|
495
|
+
syntax/precedence.rdoc
|
496
|
+
syntax/refinements.rdoc
|
497
|
+
win32/README.win32
|
498
|
+
```
|
499
|
+
|
500
|
+
The list of gem pages is available via _name_ `'_gem_name_'`:
|
501
|
+
|
502
|
+
```sh
|
503
|
+
$ ri nokogiri: | head
|
504
|
+
= Pages in gem nokogiri-1.16.2-x86_64-linux
|
505
|
+
|
506
|
+
README.md
|
507
|
+
lib/nokogiri/css/tokenizer.rex
|
508
|
+
```
|
509
|
+
|
510
|
+
See also:
|
511
|
+
|
512
|
+
- [Option \\--list][8]:
|
513
|
+
lists classes and modules.
|
514
|
+
- [Option \\--list-doc-dirs][12]:
|
515
|
+
lists `ri` source directories.
|
516
|
+
|
517
|
+
## `ri` Information
|
518
|
+
|
519
|
+
With certain options,
|
520
|
+
an `ri` command may display information other than documents or lists:
|
521
|
+
|
522
|
+
- [Option \\--help or -h][13]:
|
523
|
+
Shows `ri` help text.
|
524
|
+
- [option \\--version or -v][14]:
|
525
|
+
Shows `ri` version.
|
526
|
+
- [Option \\--dump=FILEPATH][15]:
|
527
|
+
Shows dump of `ri` cache file at the given filepath.
|
528
|
+
|
529
|
+
## Static Mode
|
530
|
+
|
531
|
+
In static mode, `ri` shows a response and exits.
|
532
|
+
|
533
|
+
In general, `ri` responds in static mode
|
534
|
+
if the command gives a _name_:
|
535
|
+
|
536
|
+
```sh
|
537
|
+
$ ri Array | head
|
538
|
+
= Array < Object
|
539
|
+
|
540
|
+
------------------------------------------------------------------------
|
541
|
+
= Includes:
|
542
|
+
Enumerable (from ruby core)
|
543
|
+
|
544
|
+
(from ruby core)
|
545
|
+
------------------------------------------------------------------------
|
546
|
+
An Array is an ordered, integer-indexed collection of objects, called
|
547
|
+
elements. Any object may be an Array element.
|
548
|
+
```
|
549
|
+
|
550
|
+
`ri` also responds in static mode when certain options are given,
|
551
|
+
even when no _name_ is given;
|
552
|
+
see [ri Information][16].
|
553
|
+
|
554
|
+
## Interactive Mode
|
555
|
+
|
556
|
+
In general, `ri` responds to a command in interactive mode
|
557
|
+
if the command has no arguments:
|
558
|
+
|
559
|
+
```sh
|
560
|
+
$ ri
|
561
|
+
Enter the method name you want to look up.
|
562
|
+
You can use tab to autocomplete.
|
563
|
+
Enter a blank line to exit.
|
564
|
+
>>
|
565
|
+
|
566
|
+
```
|
567
|
+
|
568
|
+
A command in interactive mode are similar to one in static mode,
|
569
|
+
except that it:
|
570
|
+
|
571
|
+
- Omits command word `ri`; you just type the _name_.
|
572
|
+
- Omits options; in interactive mode the only options in effect
|
573
|
+
are those taken from environment variable `RI`.
|
574
|
+
See [Options][17].
|
575
|
+
- Supports tab auto-completion for the name of a class, module, or method;
|
576
|
+
when, for example, you type `"Arr\t"` (here `"\t` represents the tab character),
|
577
|
+
`ri` "completes" the text as `'Array '`.
|
578
|
+
|
579
|
+
See also [ri at the Ready][18].
|
580
|
+
|
581
|
+
## Pager
|
582
|
+
|
583
|
+
Because `ri` output is often large,
|
584
|
+
`ri` by default pipes it to a _pager_,
|
585
|
+
which is the program whose name is the first-found among:
|
586
|
+
|
587
|
+
- The value of `ENV['RI_PAGER']`.
|
588
|
+
- The value of `ENV['PAGER']`.
|
589
|
+
- `'pager'`.
|
590
|
+
- `'less'`.
|
591
|
+
- `'more'`.
|
592
|
+
|
593
|
+
If none is found, the output goes directly to `$stdout`, with no pager.
|
594
|
+
|
595
|
+
If you set environment variable `RI_PAGER` or `PAGER`,
|
596
|
+
its value should be the name of an executable program
|
597
|
+
that will accept the `ri` output (such as `'pager'`, `'less'`, or `'more'`).
|
598
|
+
|
599
|
+
See also [Output Filters][19].
|
600
|
+
|
601
|
+
## Options
|
602
|
+
|
603
|
+
Options may be given on the `ri` command line;
|
604
|
+
those should be whitespace-separated, and must precede the given _name_, if any.
|
605
|
+
|
606
|
+
Options may also be specified in environment variable `RI`;
|
607
|
+
those should also be whitespace-separated.
|
608
|
+
|
609
|
+
An option specified in environment variable `RI`
|
610
|
+
may be overridden by an option on the `ri` command line:
|
611
|
+
|
612
|
+
```sh
|
613
|
+
$ RI="--all" ri Array | wc -l
|
614
|
+
4224
|
615
|
+
$ RI="--all" ri --no-all Array | wc -l
|
616
|
+
390
|
617
|
+
```
|
618
|
+
|
619
|
+
### Source Directories Options
|
620
|
+
|
621
|
+
#### Options `--doc-dir=DIRPATH`, `-d DIRPATH`
|
622
|
+
|
623
|
+
Option `--doc-dir=DIRPATH` (aliased as `-d`) adds the given directory path
|
624
|
+
to the beginning of the array of `ri` source directory paths:
|
625
|
+
|
626
|
+
```sh
|
627
|
+
$ ri --doc-dir=/tmp --list-doc-dirs | head -1
|
628
|
+
/tmp
|
629
|
+
```
|
630
|
+
|
631
|
+
#### Options `--gems`, `--no-gems`
|
632
|
+
|
633
|
+
Option `--gems` (the default) specifies that documents from installed gems
|
634
|
+
may be included;
|
635
|
+
option `--no-gems` may be used to exclude them:
|
636
|
+
|
637
|
+
```sh
|
638
|
+
$ ri --list | wc -l
|
639
|
+
1417
|
640
|
+
$ ri --list --no-gems| wc -l
|
641
|
+
1262
|
642
|
+
```
|
643
|
+
|
644
|
+
#### Options `--home`, `--no-home`
|
645
|
+
|
646
|
+
Option `--home` (the default) specifies that `ri` is to include source directory
|
647
|
+
in `~/.rdoc` if it exists;
|
648
|
+
option `--no-home` may be used to exclude them.
|
649
|
+
|
650
|
+
#### Options `--list-doc-dirs`, `--no-list-doc-dirs`
|
651
|
+
|
652
|
+
Option `--list-doc-dirs` specifies that a list of the `ri` source directories
|
653
|
+
is to be displayed;
|
654
|
+
default is `--no-list-doc-dirs`.
|
655
|
+
|
656
|
+
#### Option `--no-standard`
|
657
|
+
|
658
|
+
Option `--no-standard` specifies that documents from the standard libraries
|
659
|
+
are not to be included;
|
660
|
+
default is to include documents from the standard libraries.
|
661
|
+
|
662
|
+
#### Options `--site`, `--no-site`
|
663
|
+
|
664
|
+
Option `--site` (the default) specifies that documents from the site libraries
|
665
|
+
may be included;
|
666
|
+
option `--no-site` may be used to exclude them.
|
667
|
+
|
668
|
+
#### Options `--system`, `--no-system`
|
669
|
+
|
670
|
+
Option `--system` (the default) specifies that documents from the system libraries
|
671
|
+
may be included;
|
672
|
+
option `--no-system` may be used to exclude them.
|
673
|
+
|
674
|
+
### Mode Options
|
675
|
+
|
676
|
+
#### Options `--interactive`, `-i`, `--no-interactive`
|
677
|
+
|
678
|
+
Option `--interactive` (aliased as `-i`)
|
679
|
+
specifies that `ri` is to enter interactive mode (ignoring the _name_ if given);
|
680
|
+
the option is the default when no _name_ is given;
|
681
|
+
option `--no-interactive` (the default)
|
682
|
+
specifies that `ri` is not to enter interactive mode,
|
683
|
+
regardless of whether _name_ is given.
|
684
|
+
|
685
|
+
### Information Options
|
686
|
+
|
687
|
+
#### Options `--help`, `-h`
|
688
|
+
|
689
|
+
Option `--help` (aliased as `-h`) specifies that `ri` is to show
|
690
|
+
its help text and exit.
|
691
|
+
|
692
|
+
#### Options `--version`, `-v`
|
693
|
+
|
694
|
+
Option `--version` (aliased as `-v`) specifies that `ri` is to show its version and exit.
|
695
|
+
|
696
|
+
### Debugging Options
|
697
|
+
|
698
|
+
#### Options `--dump=FILEPATH`, `--no-dump`
|
699
|
+
|
700
|
+
Option `--dump=FILEPATH` specifies that `ri` is to dump the content
|
701
|
+
of the `.ri` file at the given file path;
|
702
|
+
option`--no-dump` (the default) specifies that `ri` is not to dump content.
|
703
|
+
|
704
|
+
The file path may point to any `.ri` file,
|
705
|
+
but typically would point to one named `cache.ri`:
|
706
|
+
|
707
|
+
```sh
|
708
|
+
$ ri --dump=/usr/share/ri/3.0.0/system/cache.ri | wc -l
|
709
|
+
14487
|
710
|
+
$ ri --dump=/usr/share/ri/3.0.0/system/cache.ri | head
|
711
|
+
{:ancestors=>
|
712
|
+
{"Array"=>["Enumerable", "Object"],
|
713
|
+
"RubyVM"=>["Object"],
|
714
|
+
"RubyVM::AbstractSyntaxTree::Node"=>["Object"],
|
715
|
+
"Object"=>["BasicObject", "Kernel"],
|
716
|
+
"Integer"=>["Numeric"],
|
717
|
+
"Module"=>["Object"],
|
718
|
+
"Class"=>["Module"],
|
719
|
+
"Complex"=>["Numeric"],
|
720
|
+
"NilClass"=>["Object"],
|
721
|
+
```
|
722
|
+
|
723
|
+
#### Options `--profile`, `--no-profile`
|
724
|
+
|
725
|
+
Option `--profile` specifies that the program is to be run with the Ruby profiler;
|
726
|
+
option `no-profile` (the default) specifies that the program is not to be run
|
727
|
+
with the Ruby profiler.
|
728
|
+
|
729
|
+
### Output Options
|
730
|
+
|
731
|
+
#### Options `--format=FORMAT`, `-f FORMAT`
|
732
|
+
|
733
|
+
Option `--format=FORMAT` (aliased as `-f`) specifies the formatter for the output,
|
734
|
+
which must be `ansi`, `bs`, `markdown`, or `rdoc`;
|
735
|
+
the default is `bs` for paged output, `ansi` otherwise.
|
736
|
+
|
737
|
+
#### Options `--pager`, `--no-pager`
|
738
|
+
|
739
|
+
Option `--pager` (the default) specifies that the output is to be piped
|
740
|
+
to a pager;
|
741
|
+
option `--no-pager` specifies that the output is not to be piped.
|
742
|
+
|
743
|
+
#### Options `--width=NUMBER`, `-w NUMBER`
|
744
|
+
|
745
|
+
Option `--width` (aliased as `-w`) specifies that the lengths of the displayed lines
|
746
|
+
should be restricted to the given _NUMBER_ of characters;
|
747
|
+
this is to be accomplished by line-wrapping, not truncation.
|
748
|
+
The default width is `80`:
|
749
|
+
|
750
|
+
```sh
|
751
|
+
$ ri --width=40 Array | head
|
752
|
+
= Array < Object
|
753
|
+
|
754
|
+
----------------------------------------
|
755
|
+
= Includes:
|
756
|
+
Enumerable (from ruby core)
|
757
|
+
|
758
|
+
(from ruby core)
|
759
|
+
----------------------------------------
|
760
|
+
An Array is an ordered, integer-indexed
|
761
|
+
collection of objects, called
|
762
|
+
```
|
763
|
+
|
764
|
+
|
765
|
+
### List Options
|
766
|
+
|
767
|
+
#### Options `--list`, `-l`, `--no-list`
|
768
|
+
|
769
|
+
Option `--list` (aliased as `-l`) specifies that all class and module names
|
770
|
+
whose initial characters match the given _name_ are to be displayed:
|
771
|
+
whose initial characters match the given _name_ are to be displayed:
|
772
|
+
|
773
|
+
```sh
|
774
|
+
$ ri --list Ar | head
|
775
|
+
ArgumentError
|
776
|
+
Array
|
777
|
+
```
|
778
|
+
|
779
|
+
If no _name_ is given, all class and module names are displayed.
|
780
|
+
|
781
|
+
Option `--no-list` (the default) specifies that a list of class and module names
|
782
|
+
is not to be displayed.
|
783
|
+
|
784
|
+
### Methods Options (for Class or Module)
|
785
|
+
|
786
|
+
#### Options `--all`, `-a`, `--no-all`
|
787
|
+
|
788
|
+
Option `--all` (aliased as `-a`) specifies that when _name_ identifies a class or module,
|
789
|
+
the documents for all its methods are included;
|
790
|
+
option `--no-all` (the default) specifies that the method documents are not to be included:
|
791
|
+
|
792
|
+
```shell
|
793
|
+
$ ri Array | wc -l
|
794
|
+
390
|
795
|
+
$ ri --all Array | wc -l
|
796
|
+
4224
|
797
|
+
```
|
798
|
+
|
799
|
+
### Server Option
|
800
|
+
|
801
|
+
#### Option `--server=NUMBER`
|
802
|
+
|
803
|
+
Option `--server` specifies that the \RDoc server is to be run on the port
|
804
|
+
given as _NUMBER_;
|
805
|
+
the default port is `8214`.
|
806
|
+
|
807
|
+
## Generating `ri` Source Files
|
808
|
+
|
809
|
+
`ri` by default reads data from directories installed by Ruby and gems.
|
810
|
+
|
811
|
+
You can create your own `ri` source files.
|
812
|
+
This command creates `ri` source files in local directory `my_ri`,
|
813
|
+
from Ruby source files in local directory `my_sources`:
|
814
|
+
|
815
|
+
```sh
|
816
|
+
$ rdoc --op my_ri --format=ri my_sources
|
817
|
+
```
|
818
|
+
|
819
|
+
Those files may then be considered for any `ri` command
|
820
|
+
by specifying option `--doc-dir=my_ri`;
|
821
|
+
see [option \\--doc-dir][20].
|
822
|
+
|
823
|
+
[1]: rdoc-ref:RI.md@Static+Mode
|
824
|
+
[2]: rdoc-ref:RI.md@Interactive+Mode
|
825
|
+
[3]: rdoc-ref:RI.md@Class+and+Module+Documents
|
826
|
+
[4]: rdoc-ref:RI.md@Options+--all-2C+-a-2C+--no-all
|
827
|
+
[5]: rdoc-ref:RI.md@Method+Documents
|
828
|
+
[6]: rdoc-ref:RI.md@Page+Documents
|
829
|
+
[7]: rdoc-ref:RI.md@ri+Lists
|
830
|
+
[8]: rdoc-ref:RI.md@Options+--list-2C+-l-2C+--no-list
|
831
|
+
[9]: https://docs.ruby-lang.org/en/master/IRB.html
|
832
|
+
[10]: rdoc-ref:RI.md@Pager
|
833
|
+
[11]: rdoc-ref:RI.md@Links+in+ri+Output
|
834
|
+
[12]: rdoc-ref:RI.md@Options+--list-doc-dirs-2C+--no-list-doc-dirs
|
835
|
+
[13]: rdoc-ref:RI.md@Options+--help-2C+-h
|
836
|
+
[14]: rdoc-ref:RI.md@Options+--version-2C+-v
|
837
|
+
[15]: rdoc-ref:RI.md@Options+--dump-3DFILEPATH-2C+--no-dump
|
838
|
+
[16]: rdoc-ref:RI.md@ri+Information
|
839
|
+
[17]: rdoc-ref:RI.md@Options
|
840
|
+
[18]: rdoc-ref:RI.md@ri+at+the+Ready
|
841
|
+
[19]: rdoc-ref:RI.md@Output+Filters
|
842
|
+
[20]: rdoc-ref:RI.md@Options+--doc-dir-3DDIRPATH-2C+-d+DIRPATH
|