Class: Liquid::Comment

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

Instance Attribute Summary

Attributes inherited from Tag

#line_number, #nodelist, #parse_context, #tag_name

Instance Method Summary collapse

Methods inherited from Block

#block_delimiter, #block_name, #initialize, #nodelist, #parse

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::Block

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