方法
实例私有方法
after_bundle(&block) 链接
注册一个回调,在 bundle binstubs 运行后执行。
after_bundle do git add: '.' end
来源: 显示 | 在 GitHub 上
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 613 def after_bundle(&block) # :doc: @after_bundle_callbacks << block end