Class: Solid::LiquidExtensions::UnlessTag
- Defined in:
- lib/solid/liquid_extensions/unless_tag.rb
Instance Method Summary collapse
-
#initialize(tag_name, expression, tokens, context = {}) ⇒ UnlessTag
constructor
A new instance of UnlessTag.
Methods inherited from IfTag
Methods included from TagHighjacker
Methods included from Element
#arguments, #current_context, #display, included, #with_context
Constructor Details
#initialize(tag_name, expression, tokens, context = {}) ⇒ UnlessTag
Returns a new instance of UnlessTag.
7 8 9 |
# File 'lib/solid/liquid_extensions/unless_tag.rb', line 7 def initialize(tag_name, expression, tokens, context = {}) super(tag_name, "!(#{expression})", tokens, context) end |