Class: Simmer::Util::Evaluator
- Inherits:
-
Object
- Object
- Simmer::Util::Evaluator
- Defined in:
- lib/simmer/util/evaluator.rb
Overview
Glues together Objectable and Stringento libraries to form a text template renderer.
Instance Method Summary collapse
- #evaluate(string, input = {}) ⇒ Object
-
#initialize(resolver = Resolver.new) ⇒ Evaluator
constructor
A new instance of Evaluator.
Constructor Details
Instance Method Details
#evaluate(string, input = {}) ⇒ Object
22 23 24 |
# File 'lib/simmer/util/evaluator.rb', line 22 def evaluate(string, input = {}) Stringento.evaluate(string, input, resolver: resolver) end |