01-21-2010, 06:22 PM
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
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