diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-03-14 14:27:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-03-14 14:44:46 +0900 |
commit | a884431624966824b9496daa1cfa0dc5e95fe118 (patch) | |
tree | 540f99e0192e2b19e9889fe1aa9d47383e7d315d /lib | |
parent | 8760b270ed63e6fd7a1b40ef7fa1699ab272beef (diff) |
[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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/forwardable/impl.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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__) |