Class: Liquid::Comment

Inherits:
Block show all
Defined in:
lib/liquid/tags/comment.rb

Constant Summary

Constants inherited from Block

Block::ContentOfVariable, Block::FullToken, Block::TAGSTART, Block::VARSTART

Instance Attribute Summary

Attributes inherited from Tag

#line_number, #nodelist, #options, #warnings

Instance Method Summary collapse

Methods inherited from Block

#block_delimiter, #block_name, #create_variable, #parse, #render_token_with_profiling, #warnings

Methods inherited from Tag

#initialize, #name, parse, #parse, #raw

Methods included from ParserSwitching

#parse_with_selected_parser

Constructor Details

This class inherits a constructor from Liquid::Tag

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/liquid/tags/comment.rb', line 10

def blank?
  true
end

#render(context) ⇒ Object



3
4
5
# File 'lib/liquid/tags/comment.rb', line 3

def render(context)
  ''.freeze
end

#unknown_tag(tag, markup, tokens) ⇒ Object



7
8
# File 'lib/liquid/tags/comment.rb', line 7

def unknown_tag(tag, markup, tokens)
end