class IfProcessor
Public Instance Methods
call(node:nil, attribute:nil, context:nil, **_)
click to toggle source
# File lib/thymeleaf/dialects/default/processors/if.rb, line 7 def call(node:nil, attribute:nil, context:nil, **_) attribute.unlink unless booleanize EvalExpression.parse(context, attribute.value) node.children.each {|child| child.unlink } node.unlink end end