在每个 []
中填写序号,运行该脚本,如果输出的数字依次递增就算赢啦 🎉 ( 最多有两次调试机会 )
game.rb
p '[]'
require 'active_support/concern'
p '[]'
module C
p '[]'
extend ActiveSupport::Concern
p '[]'
included do
p '[]'
end
p '[]'
end
p '[]'
module B
p '[]'
extend ActiveSupport::Concern
p '[]'
include C
p '[]'
included do
p '[]'
end
p '[]'
end
p '[]'
class A
p '[]'
include B
p '[]'
def hello
p '[]'
end
p '[]'
end
p '[]'
A.new.hello
p '[]'