Class: Deplate::Region::SecondOrder

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

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



135
136
137
138
139
# File 'lib/deplate/regions.rb', line 135

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

#processObject



141
142
143
144
145
146
147
148
149
# File 'lib/deplate/regions.rb', line 141

def process
    process_etc
    @elt = @elt.collect {|e| e.process}.compact
    @prototype = @elt.first
    unless label_mode == :none
        @prototype.put_label(@label) if @prototype
    end
    return self
end

#push_styles(*args) ⇒ Object



151
152
153
# File 'lib/deplate/regions.rb', line 151

def push_styles(*args)
    @elt.each {|e| e.push_styles(*args)}
end