Class: Deplate::Regions::Header

Inherits:
Deplate::Region show all
Defined in:
lib/deplate/regions.rb

Direct Known Subclasses

Footer

Instance Method Summary collapse

Methods inherited from Deplate::Region

check_file, clean_strings, #deprecated_regnote, deprecated_regnote, #finish_accum, #format_compound, regions, register_as, set_line_cont, #setup

Methods inherited from Element

#join_lines, #join_lines_re_zh_cn

Instance Method Details

#finishObject



1203
1204
1205
1206
1207
# File 'lib/deplate/regions.rb', line 1203

def finish
    finish_accum
    @elt = @deplate.parsed_array_from_strings(@accum, 1 + @source.begin, @source.file)
    return self
end

#processObject



1209
1210
1211
1212
1213
1214
1215
1216
# File 'lib/deplate/regions.rb', line 1209

def process
    process_etc
    for e in @elt
        e.process
    end
    @elt.compact!
    return self
end