Sha256: 19dd26e10cab82cfcf0e31f4b330babe25a86362653bb9bf9acfe5ce404cef7a
Contents?: true
Size: 781 Bytes
Versions: 113
Compression:
Stored size: 781 Bytes
Contents
# frozen_string_literal: true module Avm module EacLatexBase0 module Sources class Build class File module TexSource class << self def match?(subpath) ::File.extname(subpath) == '.tex' end end private def copy(target_path) ::File.write(target_path, target_content) end def target_content s = ::File.read(source_path) replacements.each do |from, to| s = s.gsub(from, to) end s end def replacements { '%dir%' => ::File.dirname(subpath) } end end end end end end end
Version data entries
113 entries across 113 versions & 2 rubygems