Skip Menu |

This queue is for tickets about the Inline-Ruby CPAN distribution.

Report information
The Basics
Id: 128502
Status: new
Priority: 0/
Queue: Inline-Ruby

People
Owner: Nobody in particular
Requestors: hermit [...] acm.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: new fails from Perl when overridden in Ruby
Classes that define an instance method named "new" can't be constructed from Perl. The attached file yields: Subroutine new redefined at (eval 5) line 326. Subroutine new redefined at (eval 7) line 342. Subroutine new redefined at (eval 8) line 354. Object is not a wrapped Inline::Ruby::Object object at (eval 7) line 344. Patch forthcoming.
Subject: test.pl
#!/usr/bin/env perl use strict; use warnings; use Inline 'Ruby' => <<'EOF'; require 'digest' EOF my $foo = Digest::Class->new();
This is a better example that provokes the issue while using a class that is actually meant to be instantiated. It yields: rb2pl: 2: unrecognized Ruby type Subroutine new redefined at (eval 5) line 322. Subroutine new redefined at (eval 6) line 338. Subroutine new redefined at (eval 7) line 354. Subroutine new redefined at (eval 8) line 338. Object is not a wrapped Inline::Ruby::Object object at (eval 8) line 340. Not sure what that rb2pl error is about yet.
Subject: test.pl
#!/usr/bin/env perl use strict; use warnings; use Inline 'Ruby' => <<'EOF'; require 'digest' class DigestTest < Digest::Class include Digest::Instance end EOF my $foo = DigestTest->new();