例如,我使用Chocolatey安装了Chrome.我是否需要关闭Chrome的自动更新,并且cup upgrade只能使用?
在以下代码中,Parent#just_do覆盖GrandParent#just_do. 在Me课堂上,如何打电话GrandParent#just_do?
module GrandParent
def just_do
puts "GrandParent"
end
end
module Parent
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
include GrandParent
def just_do
puts "Parent"
end
end
end
class Me
include Parent
def self.just_do
super # this calls Parent#just_do
end
end
Run Code Online (Sandbox Code Playgroud)