class Bundler::Thor::Actions::CapturableERB
Bundler::Thor::Actions#capture
取决于 ERB 中使用的缓冲类型。因此,CapturableERB
修复了 ERB 以使用字符串缓冲。
公共实例方法
set_eoutvar(编译器, eoutvar = "_erbout") 点击以切换源代码
# File bundler/vendor/thor/lib/thor/actions/file_manipulation.rb, line 363 def set_eoutvar(compiler, eoutvar = "_erbout") compiler.put_cmd = "#{eoutvar}.concat" compiler.insert_cmd = "#{eoutvar}.concat" compiler.pre_cmd = ["#{eoutvar} = ''.dup"] compiler.post_cmd = [eoutvar] end