Class: Liquid::ElseCondition

Inherits:
Condition show all
Defined in:
lib/liquid/condition.rb

Instance Attribute Summary

Attributes inherited from Condition

#attachment, #child_condition, #left, #operator, #right

Instance Method Summary collapse

Methods inherited from Condition

#and, #attach, #initialize, #inspect, operators, #or, parse_expression

Constructor Details

This class inherits a constructor from Liquid::Condition

Instance Method Details

#else?Boolean

Returns:

  • (Boolean)


170
171
172
# File 'lib/liquid/condition.rb', line 170

def else?
  true
end

#evaluate(_context) ⇒ Object



174
175
176
# File 'lib/liquid/condition.rb', line 174

def evaluate(_context)
  true
end