I'm completely new at IronRuby and I try to use it for writing GIMP
plug-ins, using my GIMP# library
(http://sourceforge.net/projects/gimp-sharp/).
I have hacked up the following code:
require "../../lib/gimp-sharp"
require "mscorlib"
class RubySample < Gimp::Plugin
def initialize(args)
super(args, 'RubySample')
end
end
puts ARGV[0]
RubySample.new(ARGV)
---
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
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core