Class: DollarExpression
- Inherits:
-
Object
- Object
- DollarExpression
- Defined in:
- lib/thymeleaf/dialects/default/parsers/dollar.rb
Class Method Summary collapse
Class Method Details
.parse(context, expr, mode = nil, **args) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/thymeleaf/dialects/default/parsers/dollar.rb', line 3 def self.parse(context, expr, mode = nil, **args) expr.gsub(/(\${.+?})/) do |match| conv = ContextEvaluator.new(context).evaluate(match[2..-2]) if mode.eql? :single_expression return conv end conv end end |