Sha256: e42703b11da8e47f457057a03241c5146fd41bc25d454ed71001ca5624c00d47
Contents?: true
Size: 595 Bytes
Versions: 9
Compression:
Stored size: 595 Bytes
Contents
class ReportBuilder class Builder class Text < Builder attr_reader :toc attr_reader :out def initialize(builder, options) super @out="" end def self.code %w{text txt} end def parse @out="#{@builder.name}\n" unless @builder.no_title parse_cycle(@builder) end def text(t) ws=" "*((parse_level-1)*2) @out << ws << t << "\n" end def preformatted(t) @out << t << "\n" end def html(t) # Nothing printed end end end end
Version data entries
9 entries across 9 versions & 1 rubygems