Class: GoNative::Utils::ContentEvaluator
- Inherits:
-
Object
- Object
- GoNative::Utils::ContentEvaluator
- Defined in:
- lib/gonative/utils/content_evaluator.rb
Class Method Summary collapse
Class Method Details
.call(content, values) ⇒ Object
9 10 11 12 |
# File 'lib/gonative/utils/content_evaluator.rb', line 9 def call(content, values) o = OpenStruct.new(values) o.instance_eval('"' + content.gsub('"', '\\\\"') + '"') end |