Class: Luoma::ContinueTag
- Defined in:
- lib/luoma/tags/continue.rb,
sig/luoma/tags/continue.rbs
Instance Attribute Summary
Attributes inherited from Markup
Class Method Summary collapse
-
.parse(token, tag_name, parser) ⇒ Markup
(t_token, String, Parser) -> Markup.
Instance Method Summary collapse
-
#initialize(token, tag_name) ⇒ ContinueTag
constructor
A new instance of ContinueTag.
-
#render(context, buffer) ⇒ void
(RenderContext, String) -> void.
Methods inherited from Markup
#block_scope, #children, #expressions, #partial, #template_scope
Constructor Details
#initialize(token, tag_name) ⇒ ContinueTag
Returns a new instance of ContinueTag.
12 13 14 15 16 |
# File 'lib/luoma/tags/continue.rb', line 12 def initialize(token, tag_name) super(token) @tag_name = tag_name @blank = true end |
Class Method Details
.parse(token, tag_name, parser) ⇒ Markup
(t_token, String, Parser) -> Markup
6 7 8 9 10 |
# File 'lib/luoma/tags/continue.rb', line 6 def self.parse(token, tag_name, parser) parser.carry_whitespace_control parser.eat(:token_tag_end) new(token, tag_name) end |
Instance Method Details
#render(context, buffer) ⇒ void
This method returns an undefined value.
(RenderContext, String) -> void
19 20 21 |
# File 'lib/luoma/tags/continue.rb', line 19 def render(context, buffer) context.interrupts.push(:continue) end |