Class: Amrita2::Renderers::HashRenderer

Inherits:
Base show all
Defined in:
lib/amrita2/template.rb

Instance Method Summary collapse

Methods inherited from Base

#generate_when

Constructor Details

#initializeHashRenderer

Returns a new instance of HashRenderer.



1911
1912
1913
# File 'lib/amrita2/template.rb', line 1911

def initialize
  super("DictionaryData")
end

Instance Method Details

#generate_body(cg, de, element) ⇒ Object



1916
1917
1918
1919
1920
1921
1922
# File 'lib/amrita2/template.rb', line 1916

def generate_body(cg, de, element)
  de.element_render_code(cg, element) do
    de.children.each do |c|
      c.render_me(cg)
    end
  end
end