Class: Malt::Format::Ruby
- Inherits:
-
AbstractTemplate
- Object
- Abstract
- AbstractTemplate
- Malt::Format::Ruby
- Defined in:
- lib/malt/formats/ruby.rb
Overview
Yes, pure Ruby as a template format.
The ruby code is run through eval and whatever it returns is given as the rendering.
The Ruby format is a polyglot format –it accepts all conversion types and assumes the end-user knows it will be the result.
In the future, the Ruby type might also used for “precompiling” other formats such as ERB.
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
- #rb ⇒ Object (also: #ruby)
- #to_rb ⇒ Object (also: #to_ruby)
Methods inherited from AbstractTemplate
Methods inherited from Abstract
#default, #engine, engine, extensions, #extensions, #file, file_extension, #file_read, #file_type, #parse_type_from_data, #refile, register, #render, #render_into, #rendering_parameters, #scope_vs_data, #subtype, #text, #to, #to_default, #to_s, #type, #with, #with!
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Malt::Format::AbstractTemplate