diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 05:17:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 05:17:55 +0000 |
commit | 8bc277f1d297ab933d8da5f7b5014e0eae2f0f19 (patch) | |
tree | f121d0b4fced83873077f7f7fd1dd4f6a8cb92f2 /vm_eval.c | |
parent | c0af2a164105834634fbea386b8e41496dcdc99c (diff) | |
download | ruby-8bc277f1d297ab933d8da5f7b5014e0eae2f0f19.tar.gz |
vm_eval.c: fstring instance_eval
* vm_eval.c (singleton_class_for_eval): enable fstring singleton
class for instance_eval. [ruby-core:78116] [Bug #12930]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1669,6 +1669,8 @@ singleton_class_for_eval(VALUE self) switch (BUILTIN_TYPE(self)) { case T_FLOAT: case T_BIGNUM: case T_SYMBOL: return Qnil; + case T_STRING: + if (FL_TEST_RAW(self, RSTRING_FSTR)) return Qnil; default: return rb_singleton_class(self); } |