Sha256: 8a0043ce1abbf6aa3199dacaa8872af7b8362b1e80dedded6fc19bd8ce417c2a
Contents?: true
Size: 280 Bytes
Versions: 10
Compression:
Stored size: 280 Bytes
Contents
# frozen_string_literal: true module UltimateLyrics class Provider class ReplaceFields common_constructor :metadata, :source_string def result fields_found.inject(source_string) { |a, e| a.gsub("{#{e}}", metadata.send(e)) } end end end end
Version data entries
10 entries across 10 versions & 2 rubygems