Class: Amrita2::Renderers::ScalarRenderer

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

Instance Method Summary collapse

Methods inherited from Base

#generate_when

Constructor Details

#initializeScalarRenderer

Returns a new instance of ScalarRenderer.



1880
1881
1882
# File 'lib/amrita2/template.rb', line 1880

def initialize
  super("ScalarData")
end

Instance Method Details

#generate_body(cg, de, element) ⇒ Object



1884
1885
1886
1887
1888
# File 'lib/amrita2/template.rb', line 1884

def generate_body(cg, de, element)
  de.element_render_code(cg, element) do
    cg.put_string_expression("$_.amrita_value")
  end
end