Daniel said:
Just use "Class.new.method".
And to call a module's method from another class, the method has to be defined as "self.method_name". For example:
module Testing
def self.test
p("Testing!")
end
end
class MyClass
def initialize
Testing.test
end
end
This is not for an acutal project. It´s my way of exploring the Ruby Game Scripting. And i must say i found it a little strange that you have to create an object of a class do reach another method.
It all comes down to that you HAVE to...sooner or later create an object.
Why i feel this is strange is because it´s not necessary in some cases. In all other languages i worked in you can call a class method whitout creating and object first.
Strange OOP methology. But i guess that RGSS is not the whole Ruby scripting but a modified version of Ruby Scripting.
Thanx for the answers. Now i know.