[Ace]How do i alias self.method?

I need to alias an method inside BattleManager, but i'm stuck in an error saying that the original method don't exist. How should i alias self.method?



Code:
module BattleManager
  alias old_display_exp display_exp
  def display_exp
    old_display_exp
   ...
  end
end
http://whynotwiki.co...lass_methods.3F

For Ruby questions, a Google search can usually give you the answer you need. 😛
Thanks.
you can simply use



Code:
class << ModuleName
  alias :old_method :method
  def method # without self
    old_method
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/ace-how-do-i-alias-self-method.3184/