J
Jonatas Paganini
Hi, I'm looking for cucumber/generators and didn't understand why use
'*' before string on initialize method.
I put it on irb and the result is the same.
class NamedArg
attr_reader :name
def initialize(s)
@name, @type = *s.split(':')
end
end
Why and where use * before string?
thanks.
'*' before string on initialize method.
I put it on irb and the result is the same.
class NamedArg
attr_reader :name
def initialize(s)
@name, @type = *s.split(':')
end
end
Why and where use * before string?
thanks.