[Ironruby-core] Xna+IronRuby+RubyNewb=headache

Dudu Baião eduardobaiao at gmail.com
Mon Dec 15 15:40:50 EST 2008


I've already posted about this issue weeks ago. I was playing iwth XNA too.

The IronRuby it's not passing correctly the parameters for the super
class methods.


2008/12/15 Gabriel Rotar <lists at ruby-forum.com>:
> As you say "Initialize" is different from "initialize"
> so I have the the constructor:
>
>  def initialize
>  graphics = GraphicsDeviceManager.new self
>  super
>  end
>
> witch works
> and then i have the Initialize procedure
>
>  def Initialize
>  super
>  end
>
> witch manages the actual 3d viewport, it is called every time the 3d
> viewport needs reinitialization(like an ALT+TAB) when I try to run the
> script I get:
> " wrong number or type of arguments for `Initialize' "
> the thing is Initialize doesn't have any parameters, is it still being
> treated as a constructor?
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>


More information about the Ironruby-core mailing list