Class: ContextEvaluator

Inherits:
Object
  • Object
show all
Defined in:
lib/thymeleaf/processor/context_evaluator.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ ContextEvaluator

Returns a new instance of ContextEvaluator.



3
4
5
# File 'lib/thymeleaf/processor/context_evaluator.rb', line 3

def initialize(context)
  self.context = context
end

Instance Method Details

#evaluate(expr) ⇒ Object



7
8
9
# File 'lib/thymeleaf/processor/context_evaluator.rb', line 7

def evaluate(expr)
  context.evaluate(expr)
end