Sha256: de274d76c6bf8041b27ba2c5fb412e8ec9efe3549cf112ee61b0c021eeb0b285
Contents?: true
Size: 447 Bytes
Versions: 2
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true require 'erb' require 'tempfile' require 'erb/file_out/version' class ERB class FileOut < ERB def set_eoutvar(compiler, eoutvar = '_erbout') compiler.put_cmd = "#{eoutvar}.write" compiler.insert_cmd = "#{eoutvar}.write" compiler.pre_cmd = ["#{eoutvar} = Tempfile.create('_erbout', encoding: __ENCODING__)"] compiler.post_cmd = ["#{eoutvar}.close", "#{eoutvar}.path"] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
erb-file_out-0.1.1 | lib/erb/file_out.rb |
erb-file_out-0.1.0 | lib/erb/file_out.rb |