summaryrefslogtreecommitdiff
path: root/test/ruby/box/string_ext.rb
diff options
context:
space:
mode:
authorSatoshi Tagomori <s-tagomori@sakura.ad.jp>2025-11-05 13:52:45 +0900
committerSatoshi Tagomori <tagomoris@gmail.com>2025-11-07 13:14:54 +0900
commit50b9d9d355b2c64101ebdd2f2de0e9010bb050dc (patch)
tree193329921f80fadeed58e20e42151d6c2eb18bf7 /test/ruby/box/string_ext.rb
parentf19b29d1dbb2918dee112b0df0cba2ca1165a399 (diff)
rename namespace.c (and others) to box.c
Diffstat (limited to 'test/ruby/box/string_ext.rb')
-rw-r--r--test/ruby/box/string_ext.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/box/string_ext.rb b/test/ruby/box/string_ext.rb
new file mode 100644
index 0000000000..d8c5a3d661
--- /dev/null
+++ b/test/ruby/box/string_ext.rb
@@ -0,0 +1,13 @@
+class String
+ def yay
+ "yay"
+ end
+end
+
+String.new.yay # check this doesn't raise NoMethodError
+
+module Bar
+ def self.yay
+ String.new.yay
+ end
+end