I have this code : inside "Sound.rb"
module SDL
extend DL::Importer
dlload(Sketchup.find_support_file("SDL.dll","Tools/Sketchyphysics3/sdl/"))
extern "int SDL_Init(int)"
etc....
end
module MSketchyPhysics3
class SPSounds
def initialize
SDL.SDL_Init(0x00000010)
etc...
end
end
end
Now I'm getting this error ::
String doesn't compile: undefined method `call' for nil:NilClass#<NoMethodError: undefined method `call' for nil:NilClass>
............. sound.rb:11:in `SDL_Init'
I think it's related to calling module method from another module class , but I can't fix it. This is an old rb I'm trying to fix, this code works with ruby 1.8 but not with ruby 2.0.0