From: phasis@... Date: 2014-01-15T09:06:14+00:00 Subject: [ruby-core:59776] [ruby-trunk - Bug #9416] 'private def' results in syntax errors in the method Issue #9416 has been updated by Heesob Park. This issue was solved with changeset r44449. But not yet backported to 2.1.0. Refer to https://bugs.ruby-lang.org/issues/9308 ---------------------------------------- Bug #9416: 'private def' results in syntax errors in the method https://bugs.ruby-lang.org/issues/9416#change-44328 * Author: First Last * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux] * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- class Class1 private def foo [1, 2].each do |e| p e end end end Class1.new.send :foo _______________________________ syntax error, unexpected keyword_do_block, expecting keyword_end [1, 2].each do |e| ^ -- http://bugs.ruby-lang.org/