Skip to content
instance method

ERB#make_compiler

make_compiler → erb_compiler

Returns a new ERB::Compiler with the given trim_mode; for trim_mode values, see ERB.new:

Example
ERB.new('').make_compiler(nil)
# => #<ERB::Compiler:0x000001cff9467678 @insert_cmd="print", @percent=false, @post_cmd=[], @pre_cmd=[], @put_cmd="print", @trim_mode=nil>
See also #location= #new_toplevel #def_module #result also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0