Class: Luoma::Comment
- Defined in:
- lib/luoma/tags/comment.rb,
sig/luoma/tags/comment.rbs
Instance Attribute Summary collapse
-
#text ⇒ String
readonly
Returns the value of attribute text.
Attributes inherited from Markup
Instance Method Summary collapse
-
#initialize(token, text) ⇒ Comment
constructor
(t_token, String) -> void.
- #render(context, buffer) ⇒ Object
Methods inherited from Markup
#block_scope, #children, #expressions, #partial, #template_scope
Constructor Details
#initialize(token, text) ⇒ Comment
(t_token, String) -> void
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
#text ⇒ String (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/luoma/tags/comment.rb', line 5 def text @text end |
Instance Method Details
#render(context, buffer) ⇒ Object
15 |
# File 'lib/luoma/tags/comment.rb', line 15 def render(context, buffer) end |