From a884431624966824b9496daa1cfa0dc5e95fe118 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 14 Mar 2022 14:27:05 +0900 Subject: [ruby/forwardable] Move `:stopdoc:` directive If this is at the top level, it stops the documentation of the entire module, but not only the part in this file. https://github.com/ruby/forwardable/commit/34cd2ac4a1 --- lib/forwardable/impl.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/forwardable/impl.rb b/lib/forwardable/impl.rb index 58a9dfb69c..0322c136db 100644 --- a/lib/forwardable/impl.rb +++ b/lib/forwardable/impl.rb @@ -1,5 +1,6 @@ -# :stopdoc: module Forwardable + # :stopdoc: + def self._valid_method?(method) catch {|tag| eval("BEGIN{throw tag}; ().#{method}", binding, __FILE__, __LINE__) -- cgit v1.2.3