Project

General

Profile

This project is closed and read-only.

Actions

Backport #5753

closed

[Ripper] on_magic_comment doesn't pass proper value

Backport #5753: [Ripper] on_magic_comment doesn't pass proper value

Added by nobu (Nobuyoshi Nakada) almost 15 years ago. Updated over 13 years ago.

Status:
Closed
[ruby-dev:44984]

Description

=begin
$ ruby -v -rripper -e 'r = Ripper.new("# -- foo: bar --"); def r.on_magic_comment(*x);p x;end;r.parse'
["foo", false]

Should be ((%["foo", "bar"]%)).

Affects also 1.9.
=end

Actions

Also available in: PDF Atom