how to check if a method has been aliased?
#6
There's a simpler way - there is actually a method for this in fact.

method_defined

When you alias you define a method, such as - - alias wy_main main

So we can do:

unless method_defined?(wy_main)
alias wy_main main
end

Or simpler still just

alias wy_main main unless method_defined?(wy_main)



I can't believe that a couple of years ago Trickster made a "disable F12" script and everyone used it as a fix for this :x



Edit: wha- where did those posts come from o.O
Reply }


Messages In This Thread
[Resolved] how to check if a method has been aliased? - by Wyatt - 01-21-2010, 06:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Array to arguments for a method? PK8 2 4,979 07-08-2011, 10:47 PM
Last Post: PK8
   Check player facing direction desbrina 5 7,644 06-20-2010, 09:58 PM
Last Post: deValdr
   New Encryption Method Test Legacy 2 4,797 05-22-2010, 07:17 PM
Last Post: Monster Buffer
   How to check if the value of a number is an even or odd number? PK8 5 7,624 01-04-2010, 10:45 PM
Last Post: PK8
   How to check if actor has certain stat(s) with RGSS? Twin Matrix 4 9,773 01-04-2009, 05:35 PM
Last Post: Twin Matrix



Users browsing this thread: 1 Guest(s)