lib/texico/template.rb
# Returns a report of what files where copied.
Returns a report of what files where copied.
Returns a report of what files where copied .
def copy(dest, params, opts, &block)
      map_status = block_given? ? block : ->(status) { status.to_s }
      status_tree =
        self.class.map_tree(@file_tree) do |file|
          map_status.call(file.copy(params, dest, opts))
        end
      { name => status_tree }
    end
def copy ( dest , params , opts , & block ) map_status = block_given? ? block : -> ( status ) { status . to_s } status_tree = self . class . map_tree ( @file_tree ) do | file | map_status . call ( file . copy ( params , dest , opts ) ) end { name => status_tree } end
Returns a report of what files where copied.
Returns a report of what files where copied .
dest
<not_specific>
params
<not_specific>
opts
<not_specific>
block
<not_specific>