Class: Koara::Ast::CodeBlock

Inherits:
BlockElement show all
Defined in:
lib/koara/ast/codeblock.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #parent, #value

Instance Method Summary collapse

Methods inherited from BlockElement

#has_children, #is_first_child, #is_last_child, #is_single_child, #nested, #next

Methods inherited from Node

#add, #children_accept

Instance Attribute Details

#languageObject

Returns the value of attribute language.



7
8
9
# File 'lib/koara/ast/codeblock.rb', line 7

def language
  @language
end

Instance Method Details

#accept(renderer) ⇒ Object



9
10
11
# File 'lib/koara/ast/codeblock.rb', line 9

def accept(renderer)
  renderer.visit_codeblock(self)
end