class Malt::Format::String

Yes, pure Ruby as a template format.

The ruby code is run through eval and whatever is returned 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.

The Ruby type is also used for “precompiling” other formats such as ERB.

Public Instance Methods

string(*) click to toggle source
# File lib/malt/formats/string.rb, line 23
def string(*) ; text ; end
to_string(*) click to toggle source
# File lib/malt/formats/string.rb, line 26
def to_string(*) ; self ; end