This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
template(source, *args, &block)
public
Gets an ERBtemplate at the relative
source, executes it and makes a copy at the relative destination. If the
destination is not given it’s assumed to be equal to the source removing
.tt from the filename.