Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Module Question
Adrien.
post Sep 3 2011, 06:35 PM
Post #1


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




If I am writing a module, is there a way to say, make the ability for a user using the class that includes this module NOT be able to use .new to inialize the class? instead use a diffrent method? Essentially I am asking to make a module where when included it makes the initalize method private

I know you can do in a class:

CODE
private

def inialize
end

public
#some other methods.



But I want the module to take away the idea of doing that and make the initialize method private.

Ideas?


Thread has been reported to be moved to vx

This post has been edited by Adrien.: Sep 3 2011, 06:58 PM


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 12:50 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker