Class: Luoma::Markup

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

Overview

The base class for all tag nodes and the output statement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ Markup

(t_token) -> void

Parameters:

  • token (t_token)


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

#blankBoolean (readonly)

Returns the value of attribute blank.

Returns:

  • (Boolean)


6
7
8
# File 'lib/luoma/markup.rb', line 6

def blank
  @blank
end

#tag_nameString (readonly)

Returns the value of attribute tag_name.

Returns:

  • (String)


6
7
8
# File 'lib/luoma/markup.rb', line 6

def tag_name
  @tag_name
end

#tokent_token (readonly)

Returns the value of attribute token.

Returns:

  • (t_token)


6
7
8
# File 'lib/luoma/markup.rb', line 6

def token
  @token
end

Instance Method Details

#block_scope::Array[Name]

() -> Array

Returns:



31
32
33
# File 'lib/luoma/markup.rb', line 31

def block_scope
  []
end

#children(static_context) ⇒ ::Array[Markup]

(RenderContext) -> Array

Parameters:

Returns:



21
22
23
# File 'lib/luoma/markup.rb', line 21

def children(static_context)
  []
end

#expressions::Array[Expression]

() -> Array

Returns:



26
27
28
# File 'lib/luoma/markup.rb', line 26

def expressions
  []
end

#partial(static_context) ⇒ Partial?

(RenderContext) -> Partial?

Parameters:

Returns:



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

Parameters:



16
17
18
# File 'lib/luoma/markup.rb', line 16

def render(context, buffer)
  raise "not implemented"
end

#template_scope::Array[Name]

() -> Array

Returns:



36
37
38
# File 'lib/luoma/markup.rb', line 36

def template_scope
  []
end