new(trim_mode)
public
Construct a new compiler using
the trim_mode. See ERB::new for available trim modes.
Show source
def initialize(trim_mode)
@percent, @trim_mode = prepare_trim_mode(trim_mode)
@put_cmd = 'print'
@insert_cmd = @put_cmd
@pre_cmd = []
@post_cmd = []
end