summaryrefslogtreecommitdiff
path: root/doc/optparse/ruby
diff options
context:
space:
mode:
authorSatoshi Tagomori <s-tagomori@sakura.ad.jp>2025-11-01 08:03:33 +0900
committerSatoshi Tagomori <tagomoris@gmail.com>2025-11-03 02:06:11 +0900
commit0116dd5e0caaf8136f867b3037ce6d8dbf376232 (patch)
treee84ded9d08fa8d0d461b5be40688bba7d47b15c4 /doc/optparse/ruby
parentfa4c04a7f75cef4f5e3c1a92b54eba8316c159a5 (diff)
Make Namespace.root visible not only for debugging
There are many APIs that expects application codes overwrite global methods. For example, warn() expects Warning.warn() is overwritten to hook warning messages. If we enable namespace, Warning.warn defined in the app code is visible only in the namespace, and invisible from warn() defined in the root namespace. So we have to enable users to overwrite Warning.warn in the root namespace. This is ugly and temporal workaround. We need to define better APIs to enable users to hook such behaviors in the different way from defining global methods.
Diffstat (limited to 'doc/optparse/ruby')
0 files changed, 0 insertions, 0 deletions