跳到內容 跳到搜尋
方法
A

執行個體私有方法

after_bundle(&block)

註冊一個在 bundle binstubs 執行後執行的回呼。

after_bundle do
  git add: '.'
end
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 574
def after_bundle(&block) # :doc:
  @after_bundle_callbacks << block
end