diff options
Diffstat (limited to 'test/ruby/namespace/string_ext.rb')
-rw-r--r-- | test/ruby/namespace/string_ext.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/namespace/string_ext.rb b/test/ruby/namespace/string_ext.rb new file mode 100644 index 0000000000..d8c5a3d661 --- /dev/null +++ b/test/ruby/namespace/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 |