Sha256: 2d23f84fdf8d1b29e299e0860c6e361495defb7efc00806940c24b19d19abad9
Contents?: true
Size: 365 Bytes
Versions: 15
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true module GoNative module Utils class TemplateInflator def initialize(content) @content = content.dup end def call(values) values.each { |name, value| content.gsub!("{{#{name}}}", value.to_s) } content end private attr_reader :content end end end
Version data entries
15 entries across 15 versions & 1 rubygems