Method: Mysh::VarsCommand#process_command

Defined in:
lib/mysh/internal/vars.rb

#process_command(input) ⇒ Object

Execute a command against the internal mysh variables.



22
23
24
25
26
27
28
29
30
31
# File 'lib/mysh/internal/vars.rb', line 22

def process_command(input)
  if (match = VAR_EXP.match(input.raw_body))
    @var_name, @equals, @value = match[:name], match[:equals], match[:value]
  else
    @var_name, @equals, @value = nil
  end

  do_command
  :internal
end