Class: NanDoc::Erb::Agent

Inherits:
Object
  • Object
show all
Extended by:
Cli::OptionMethods
Defined in:
lib/nandoc/erb/agent.rb

Class Method Summary collapse

Methods included from Cli::OptionMethods

exclusive_opt_flags, normalize_opt_key, normalize_opts, option_enum, unnormalize_opt_key, unnormalize_opt_keys

Class Method Details

.process_erb_values_from_the_commandline(cmd, task, names, argv) ⇒ Object

put parameter values from the command line into the erb files in the task

Parameters:

  • (?)
  • task (Treebis::Task)
    • takes erb values

  • names (Array)
    • the list of names it takes

  • argv (Array)
    • ARGV or the like



19
20
21
22
23
24
25
26
27
# File 'lib/nandoc/erb/agent.rb', line 19

def process_erb_values_from_the_commandline cmd, task, names, argv
  @cmd, @task, @names, @argv = cmd, task, names, argv
  @args = nil
  args_none unless argv
  args_parse
  erb_values = args_validate
  task.erb_values(erb_values)
  nil
end