Class: ERB::Compiler::Buffer
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/erb.rb |
Class Method Summary
- .new(compiler, enc = nil, frozen = nil) ⇒ Buffer constructor
Instance Attribute Summary
- #script readonly
Instance Method Summary
Constructor Details
.new(compiler, enc = nil, frozen = nil) ⇒ Buffer
Instance Attribute Details
#script (readonly)
[ GitHub ]# File 'lib/erb.rb', line 552
attr_reader :script
Instance Method Details
#close
[ GitHub ]#cr
[ GitHub ]# File 'lib/erb.rb', line 558
def cr @script << (@line.join('; ')) @line = [] @script << "\n" end
#push(cmd)
[ GitHub ]# File 'lib/erb.rb', line 554
def push(cmd) @line << cmd end