diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c index c7caccb32f..853e66799e 100644 --- a/vm_method.c +++ b/vm_method.c @@ -917,9 +917,9 @@ rb_attr(VALUE klass, ID id, int read, int write, int ex) else { if (SCOPE_TEST(NOEX_PRIVATE)) { noex = NOEX_PRIVATE; - rb_warning((SCOPE_CHECK(NOEX_MODFUNC)) ? - "attribute accessor as module_function" : - "private attribute?"); + if (SCOPE_CHECK(NOEX_MODFUNC)) { + rb_warning("attribute accessor as module_function"); + } } else if (SCOPE_TEST(NOEX_PROTECTED)) { noex = NOEX_PROTECTED; |