Class: Amrita2::Renderers::ScalarRenderer
- Defined in:
- lib/amrita2/template.rb
Instance Method Summary collapse
- #generate_body(cg, de, element) ⇒ Object
-
#initialize ⇒ ScalarRenderer
constructor
A new instance of ScalarRenderer.
Methods inherited from Base
Constructor Details
#initialize ⇒ ScalarRenderer
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 |