method
new
v2_6_3 -
Show latest stable
- Class:
ERB::Compiler::Buffer
new(compiler, enc=nil, frozen=nil)public
No documentation available.
# File lib/erb.rb, line 542
def initialize(compiler, enc=nil, frozen=nil)
@compiler = compiler
@line = []
@script = +''
@script << "#coding:#{enc}\n" if enc
@script << "#frozen-string-literal:#{frozen}\n" unless frozen.nil?
@compiler.pre_cmd.each do |x|
push(x)
end
end