From dca8d9a6aa9c590a5707959d2c211a8273f7bc06 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Thu, 12 Feb 2026 14:46:02 +0100 Subject: 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 --- .document | 3 +++ prism/srcs.mk.in | 1 + prism/templates/template.rb | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.document b/.document index 82ca602bfb..753d6f9892 100644 --- a/.document +++ b/.document @@ -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) -- cgit v1.2.3