Class: Amrita2::Core::CompoundElement
- Inherits:
-
ParentNode
- Object
- BaseNode
- ParentNode
- Amrita2::Core::CompoundElement
- Defined in:
- lib/amrita2/gettext.rb,
lib/amrita2/template.rb
Overview
:nodoc: all
Instance Attribute Summary
Attributes inherited from ParentNode
Attributes inherited from BaseNode
Instance Method Summary collapse
Methods inherited from ParentNode
#dynamic?, #each, #has_dynamic?, #has_ruby?, #initialize, #module_src
Methods inherited from BaseNode
#dynamic?, #has_ruby?, #initialize, #module_src, #parent_de, #root
Constructor Details
This class inherits a constructor from Amrita2::Core::ParentNode
Instance Method Details
#get_erb_source ⇒ Object
7 8 9 10 11 |
# File 'lib/amrita2/gettext.rb', line 7 def get_erb_source @children.collect do |c| c.get_erb_source end.join("\n") end |
#render_me(cg) ⇒ Object
762 763 764 765 766 767 768 769 770 771 772 |
# File 'lib/amrita2/template.rb', line 762 def render_me(cg) if @element.empty? cg.put_constant(@element.to_s) else @parent.element_render_code(cg, @element) do each do |c| c.render_me(cg) end end end end |