Class: Luoma::Markup
- Inherits:
-
Object
- Object
- Luoma::Markup
- Defined in:
- lib/luoma/markup.rb,
sig/luoma/markup.rbs
Overview
The base class for all tag nodes and the output statement.
Direct Known Subclasses
AssignTag, BreakTag, CaptureTag, CaseTag, Comment, ContinueTag, DefineTag, ElseBlock, ForTag, IfBlock, IfTag, ImportTag, IncludeTag, OutputStatement, RawTag, RenderTag, WhenBlock, WithTag
Instance Attribute Summary collapse
-
#blank ⇒ Boolean
readonly
Returns the value of attribute blank.
-
#tag_name ⇒ String
readonly
Returns the value of attribute tag_name.
-
#token ⇒ t_token
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#block_scope ⇒ ::Array[Name]
() -> Array.
-
#children(static_context) ⇒ ::Array[Markup]
(RenderContext) -> Array.
-
#expressions ⇒ ::Array[Expression]
() -> Array.
-
#initialize(token) ⇒ Markup
constructor
(t_token) -> void.
-
#partial(static_context) ⇒ Partial?
(RenderContext) -> Partial?.
-
#render(context, buffer) ⇒ void
(RenderContext, String) -> void.
-
#template_scope ⇒ ::Array[Name]
() -> Array.
Constructor Details
#initialize(token) ⇒ Markup
(t_token) -> void
9 10 11 12 13 |
# File 'lib/luoma/markup.rb', line 9 def initialize(token) @token = token @blank = false @tag_name = "" end |
Instance Attribute Details
#blank ⇒ Boolean (readonly)
Returns the value of attribute blank.
6 7 8 |
# File 'lib/luoma/markup.rb', line 6 def blank @blank end |
#tag_name ⇒ String (readonly)
Returns the value of attribute tag_name.
6 7 8 |
# File 'lib/luoma/markup.rb', line 6 def tag_name @tag_name end |
#token ⇒ t_token (readonly)
Returns the value of attribute token.
6 7 8 |
# File 'lib/luoma/markup.rb', line 6 def token @token end |
Instance Method Details
#block_scope ⇒ ::Array[Name]
() -> Array
31 32 33 |
# File 'lib/luoma/markup.rb', line 31 def block_scope [] end |
#children(static_context) ⇒ ::Array[Markup]
(RenderContext) -> Array
21 22 23 |
# File 'lib/luoma/markup.rb', line 21 def children(static_context) [] end |
#expressions ⇒ ::Array[Expression]
() -> Array
26 27 28 |
# File 'lib/luoma/markup.rb', line 26 def expressions [] end |
#partial(static_context) ⇒ Partial?
(RenderContext) -> Partial?
41 42 43 |
# File 'lib/luoma/markup.rb', line 41 def partial(static_context) nil end |
#render(context, buffer) ⇒ void
This method returns an undefined value.
(RenderContext, String) -> void
16 17 18 |
# File 'lib/luoma/markup.rb', line 16 def render(context, buffer) raise "not implemented" end |