diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-14 14:34:16 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-03-14 14:40:28 +0900 |
commit | 8760b270ed63e6fd7a1b40ef7fa1699ab272beef (patch) | |
tree | 64940fe876eb182612a8b29a30a3d597058ab37b /lib/irb/lc/ja | |
parent | 3c59913a05ba73f1eeadc7fbff3f55185fef2713 (diff) |
[ruby/irb] 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/irb/commit/86c41b06ad
Diffstat (limited to 'lib/irb/lc/ja')
-rw-r--r-- | lib/irb/lc/ja/encoding_aliases.rb | 6 | ||||
-rw-r--r-- | lib/irb/lc/ja/error.rb | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/irb/lc/ja/encoding_aliases.rb b/lib/irb/lc/ja/encoding_aliases.rb index c534bf0fef..08180c3ec2 100644 --- a/lib/irb/lc/ja/encoding_aliases.rb +++ b/lib/irb/lc/ja/encoding_aliases.rb @@ -1,11 +1,13 @@ # frozen_string_literal: false -# :stopdoc: module IRB + # :stopdoc: + class Locale @@legacy_encoding_alias_map = { 'ujis' => Encoding::EUC_JP, 'euc' => Encoding::EUC_JP }.freeze end + + # :startdoc: end -# :startdoc: diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb index 31ebb3b5f0..d7c181c02e 100644 --- a/lib/irb/lc/ja/error.rb +++ b/lib/irb/lc/ja/error.rb @@ -10,8 +10,9 @@ # # -# :stopdoc: module IRB + # :stopdoc: + class UnrecognizedSwitch < StandardError def initialize(val) super("スイッチ(#{val})が分りません") @@ -67,6 +68,7 @@ module IRB super("RC_NAME_GENERATORが正しく定義されていません.") end end + + # :startdoc: end -# :startdoc: # vim:fileencoding=utf-8 |