Class: Deplate::Command::COUNTER

Inherits:
Deplate::Command show all
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



600
601
602
603
604
605
606
607
608
609
610
611
612
# File 'lib/deplate/commands.rb', line 600

def self.accumulate(src, array, deplate, text, match, args, cmd)
    Deplate::Core.log("%s: %s" % [cmd, text], :debug, src)
    c = args['id'] || args['counter'] || text
    if args['reset']
        # <+TBD+>
    elsif (by = args['increase'])
        by = by.to_i
        l  = args['level']
        # <+TBD+>
    else
        Deplate::Core.log(['#COUNTER', 'Missing directive'], :error, src)
    end
end