W3cubDocs

/Ruby 2.7

class Bundler::Thor::Actions::CapturableERB

Parent:
ERB

Bundler::Thor::Actions#capture depends on what kind of buffer is used in ERB. Thus CapturableERB fixes ERB to use String buffer.

Public Instance Methods

set_eoutvar(compiler, eoutvar = "_erbout") Show source
# 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

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.