Project

General

Profile

Actions

Bug #9726

closed

Incorrect Proc parsing

Added by svladb (Vladimir Smelyansky) about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
[ruby-core:61950]

Description

There seems to be issue in parsing with white space:

The code below works:

proc_issue (Proc.new { |n|
  "Do something"
})

That code causing parsing error (removing white space makes it working proc_issue (Proc..)

proc_issue (Proc.new do |n|
  "Do something"
end)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0