Class: Bundler::Thor::Actions::CapturableERB
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ERB
|
|
Instance Chain:
self,
ERB
|
|
Inherits: |
ERB
|
Defined in: | lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb |
Overview
#capture depends on what kind of buffer is used in ERB. Thus CapturableERB fixes ERB to use String buffer.
Instance Method Summary
Instance Method Details
#set_eoutvar(compiler, eoutvar = "_erbout")
[ GitHub ]# File 'lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb', line 356
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