class Malt::Format::Ruby
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.
Public Instance Methods
rb(*)
click to toggle source
# File lib/malt/formats/ruby.rb, line 22 def rb(*) text end
Also aliased as: ruby
to_rb(*)
click to toggle source
# File lib/malt/formats/ruby.rb, line 29 def to_rb(*) self end
Also aliased as: to_ruby