Sha256: 5d1ebbca4132c373b528504cdf3e272e247c66146139c6d247554964ac55721f

Contents?: true

Size: 305 Bytes

Versions: 55

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

require 'ostruct'

module GoNative
  module Utils
    class ContentEvaluator
      class << self
        def call(content, values)
          o = OpenStruct.new(values)
          o.instance_eval('"' + content.gsub('"', '\\\\"') + '"')
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
gonative-cli-1.4.4 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.4.3 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.4.2 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.4.1 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.4.0 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.9 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.8 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.7 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.6 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.5 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.4 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.3 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.2 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.1 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.3.0 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.2.4 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.2.3 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.2.2 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.2.1 lib/gonative/utils/content_evaluator.rb
gonative-cli-1.2.0 lib/gonative/utils/content_evaluator.rb