Module: Stringento
- Defined in:
- lib/stringento.rb,
lib/stringento/version.rb,
lib/stringento/resolver.rb,
lib/stringento/template.rb,
lib/stringento/formatter.rb,
lib/stringento/placeholder.rb
Overview
Copyright © 2019-present, Blue Marble Payroll, LLC
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Defined Under Namespace
Classes: Formatter, Placeholder, Resolver, Template
Constant Summary collapse
- VERSION =
'2.1.0'
Class Method Summary collapse
Class Method Details
.evaluate(expression, input, resolver: nil, formatter: nil) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/stringento.rb', line 20 def evaluate(expression, input, resolver: nil, formatter: nil) template(expression).evaluate( input, resolver: (resolver || default_resolver), formatter: (formatter || default_formatter) ) end |