M
Mario Ruiz
I'm trying to pass to a method all the parameters in a global variable:
$allparameters="dos","ie","4","alone","","8"
...
myclass.mymethod($allparameters)
I'm doing that because I'm using this parameters a lot.
The error is: wrong number of arguments (1 for 6) (ArgumentError)
I tried also: $allparameters=["dos","ie","4","alone","","8"]
$allparameters="dos","ie","4","alone","","8"
...
myclass.mymethod($allparameters)
I'm doing that because I'm using this parameters a lot.
The error is: wrong number of arguments (1 for 6) (ArgumentError)
I tried also: $allparameters=["dos","ie","4","alone","","8"]