Class: ObjectProcessor
- Inherits:
-
Object
- Object
- ObjectProcessor
- Includes:
- Thymeleaf::Processor
- Defined in:
- lib/thymeleaf/dialects/default/processors/object.rb
Instance Method Summary collapse
Methods included from Thymeleaf::Processor
#evaluate_in_context, #load_template, #subprocess_node
Instance Method Details
#call(attribute: nil, context: nil, **_) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/thymeleaf/dialects/default/processors/object.rb', line 7 def call(attribute:nil, context:nil, **_) attribute.unlink obj_var = EvalExpression.parse_single_expression(context, attribute.value) new_context = ContextHolder.new({}, context) new_context.set_private(DefaultDialect::CONTEXT_OBJECT_VAR, obj_var) attribute.unlink new_context end |
#has_subcontext? ⇒ Boolean
18 19 20 |
# File 'lib/thymeleaf/dialects/default/processors/object.rb', line 18 def has_subcontext? true end |