diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2026-02-12 14:46:02 +0100 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2026-02-12 09:47:37 -0500 |
| commit | dca8d9a6aa9c590a5707959d2c211a8273f7bc06 (patch) | |
| tree | d79a605c382b4a4a6534f89c53e5b372646dbb08 | |
| parent | 727b99f9c5dca7ee8d6529171d3e0754855f5fb7 (diff) | |
Fix prism docs
Ruby codes lives in lib/prism but c code is just in prism.
This fixes docs on https://docs.ruby-lang.org/en/master/Prism.html
Currently it doesn't list any methods that are defined in the C extension
| -rw-r--r-- | .document | 3 | ||||
| -rw-r--r-- | prism/srcs.mk.in | 1 | ||||
| -rwxr-xr-x | prism/templates/template.rb | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -42,6 +42,9 @@ lib # and some of the ext/ directory (which has its own .document file) ext +# For `prism`, ruby code is in lib and c in the prism folder +prism + # rdoc files NEWS.md diff --git a/prism/srcs.mk.in b/prism/srcs.mk.in index cc263fd1b4..d9dcd9b802 100644 --- a/prism/srcs.mk.in +++ b/prism/srcs.mk.in @@ -1,4 +1,5 @@ <% # -*- ruby -*- +# :stopdoc: require_relative 'templates/template' script = File.basename(__FILE__) diff --git a/prism/templates/template.rb b/prism/templates/template.rb index 0c695fade5..28ac475cdf 100755 --- a/prism/templates/template.rb +++ b/prism/templates/template.rb @@ -6,7 +6,7 @@ require "fileutils" require "yaml" module Prism - module Template + module Template # :nodoc: all SERIALIZE_ONLY_SEMANTICS_FIELDS = ENV.fetch("PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS", false) REMOVE_ON_ERROR_TYPES = SERIALIZE_ONLY_SEMANTICS_FIELDS CHECK_FIELD_KIND = ENV.fetch("CHECK_FIELD_KIND", false) |
