Class: Liquid::ElseCondition

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

Instance Attribute Summary

Attributes inherited from Condition

#attachment, #left, #operator, #right

Instance Method Summary collapse

Methods inherited from Condition

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

Constructor Details

This class inherits a constructor from Liquid::Condition

Instance Method Details

#else?Boolean

Returns:

  • (Boolean)


122
123
124
# File 'lib/liquid/condition.rb', line 122

def else?
  true
end

#evaluate(context) ⇒ Object



126
127
128
# File 'lib/liquid/condition.rb', line 126

def evaluate(context)
  true
end