module Graphics @update = method('update') if @update.nil? def self.update # 这里执行你自己的代码 @update.call end end
class << Graphics alias old_update update def update old_update # ... end end
其实不提倡往这个地方塞东西真的| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |