Get all passed parameters (e.g $@ in shell)

asked 2016-12-16 00:47:13 -0600

Is there a way to get all the arguments passed to a class? The reason being is I don't want to end up with brittle if guards for each contain as shown here: I would much rather have something like: $@.each | k, v | { if $k != '' { contain $k } }

edit retag flag offensive close merge delete