Class: Luoma::Comment

Inherits:
Markup
  • Object
show all
Defined in:
lib/luoma/tags/comment.rb,
sig/luoma/tags/comment.rbs

Instance Attribute Summary collapse

Attributes inherited from Markup

#blank, #tag_name, #token

Instance Method Summary collapse

Methods inherited from Markup

#block_scope, #children, #expressions, #partial, #template_scope

Constructor Details

#initialize(token, text) ⇒ Comment

(t_token, String) -> void

Parameters:

  • token (t_token)
  • text (String)


8
9
10
11
12
# File 'lib/luoma/tags/comment.rb', line 8

def initialize(token, text)
  super(token)
  @text = text
  @blank = true
end

Instance Attribute Details

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


5
6
7
# File 'lib/luoma/tags/comment.rb', line 5

def text
  @text
end

Instance Method Details

#render(context, buffer) ⇒ Object

Signature:

  • (RenderContext, String) -> void



15
# File 'lib/luoma/tags/comment.rb', line 15

def render(context, buffer) end