Class: Solid::LiquidExtensions::UnlessTag

Inherits:
IfTag
  • Object
show all
Defined in:
lib/solid/liquid_extensions/unless_tag.rb

Instance Method Summary collapse

Methods inherited from IfTag

#render, #unknown_tag

Methods included from TagHighjacker

#load!, #tag_name, #unload!

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