Class: Deplate::Command::LTX
- Inherits:
-
Deplate::Command
- Object
- Element
- Deplate::Command
- Deplate::Command::LTX
- Defined in:
- lib/deplate/commands.rb
Class Method Summary collapse
Methods inherited from Deplate::Command
commands, #finish, #format_special, #process, register_as, #setup, #setup_command, update_variables
Methods included from Names
name_match_c, name_match_fs, name_match_sf
Methods inherited from Element
#join_lines, #join_lines_re_zh_cn
Class Method Details
.accumulate(src, array, deplate, text, match, args, cmd) ⇒ Object
874 875 876 877 878 879 880 881 882 883 |
# File 'lib/deplate/commands.rb', line 874 def accumulate(src, array, deplate, text, match, args, cmd) Deplate::Core.log("%s: %s" % [cmd, text], :debug, src) m = [] m[Deplate::Element::Region.rxi_name] = 'Ltx' m[Deplate::Element::Region.rxi_args] = match[2] m[Deplate::Element::Region.rxi_endrx] = Regexp.escape('_$%{}%$_') m[Deplate::Element::Region.rxi_indent] = '' text += "\n_$%{}%$_" Deplate::Element::Region.accumulate(src, array, deplate, text, m) end |