diff options
| author | Satoshi Tagomori <tagomoris@gmail.com> | 2025-04-30 13:48:02 +0900 |
|---|---|---|
| committer | Satoshi Tagomori <tagomoris@gmail.com> | 2025-05-11 23:32:50 +0900 |
| commit | 382645d440d5da66a0c04557f3ff2ca226de3a27 (patch) | |
| tree | b7453449930197237e739d0985561b664f51b0f3 /test/ruby/namespace/string_ext_eval_caller.rb | |
| parent | 49742414f6444960838bb968bab43db27f5872c1 (diff) | |
namespace on read
Diffstat (limited to 'test/ruby/namespace/string_ext_eval_caller.rb')
| -rw-r--r-- | test/ruby/namespace/string_ext_eval_caller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/namespace/string_ext_eval_caller.rb b/test/ruby/namespace/string_ext_eval_caller.rb new file mode 100644 index 0000000000..0e6b20c19f --- /dev/null +++ b/test/ruby/namespace/string_ext_eval_caller.rb @@ -0,0 +1,12 @@ +module Baz + def self.yay + eval 'String.new.yay' + end + + def self.yay_with_binding + suffix = ", yay!" + eval 'String.new.yay + suffix', binding + end +end + +Baz.yay # should not raise NeMethodError |
