Class: Deplate::Regions::Verbatim
- Inherits:
-
Deplate::Region
- Object
- Element
- Deplate::Region
- Deplate::Regions::Verbatim
- 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
#finish ⇒ Object
799 800 801 802 803 804 |
# File 'lib/deplate/regions.rb', line 799 def finish finish_accum @elt = [ @accum ] @verbatimMargin = @deplate.variables['verbatimMargin'] return self end |
#process ⇒ Object
806 807 808 809 810 811 812 813 814 815 816 817 818 |
# File 'lib/deplate/regions.rb', line 806 def process process_etc @elt = @elt.join("\n") if @args['removeBackslashes'] @elt = Deplate::Core.remove_backslashes(@elt) end margin = @args['wrap'] || @verbatimMargin if margin @elt = @deplate.formatter.wrap_text(@elt, :margin => margin.to_i) end # @elt = Deplate::Core.remove_backslashes(@elt.join("\n")) return self end |