[Ironruby-core] IronRuby for GIMP

Jim Deville jdeville at microsoft.com
Wed Oct 29 19:03:43 EDT 2008

Did anyone ever help you with this?

-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Maurits Rijk
Sent: Monday, October 27, 2008 8:44 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] IronRuby for GIMP

I'm completely new at IronRuby and I try to use it for writing GIMP
plug-ins, using my GIMP# library

I have hacked up the following code:

require "../../lib/gimp-sharp"
require "mscorlib"

class RubySample < Gimp::Plugin

  def initialize(args)
    super(args, 'RubySample')


puts ARGV[0]


But I get the following error: unknown: wrong number or type of
arguments for `initialize' (ArgumentError)

The Plugin class has a constructor that takes two arguments: an array of
strings (the command line arguments) and a string. Does IronRuby have a
different notion of arrays and/or strings than the CLR? If so, how do I
convert them?

Thanks, Maurits
Posted via http://www.ruby-forum.com/.
Ironruby-core mailing list
Ironruby-core at rubyforge.org

More information about the Ironruby-core mailing list