Class: Bundler::Thor::Actions::CapturableERB
- Defined in:
- lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb
Overview
Bundler::Thor::Actions#capture depends on what kind of buffer is used in ERB. Thus CapturableERB fixes ERB to use String buffer.
Constant Summary
Constants inherited from ERB
Instance Attribute Summary
Attributes inherited from ERB
#encoding, #filename, #lineno, #src
Instance Method Summary collapse
Methods inherited from ERB
#def_class, #def_method, #def_module, #initialize, #location=, #make_compiler, #result, #result_with_hash, #run, version
Constructor Details
This class inherits a constructor from ERB
Instance Method Details
#set_eoutvar(compiler, eoutvar = "_erbout") ⇒ Object
365 366 367 368 369 370 |
# File 'lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb', line 365 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 |