From: alxtskrnk@... Date: 2015-01-24T00:22:58+00:00 Subject: [ruby-core:67776] [ruby-trunk - Bug #10778] [Open] `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)` Issue #10778 has been reported by bug hit. ---------------------------------------- Bug #10778: `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)` https://bugs.ruby-lang.org/issues/10778 * Author: bug hit * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- defined? is an operator not a method, its operand is defined as the expressions to its right. It does not even require a space: `defined?a` So `defined?(a)` should be equivalent to `defined? (a)` instead of `(defined? a)` -- https://bugs.ruby-lang.org/