Closed zzak closed 10 years ago
String#split
doesn't currently take a default argument
@zzak oh lol, that's a doc bug. Those docs need to be thrown out.
@charliesome so spec would be no default delimiter
?
i can send a patch to update the docs, i was guessing the docs were reflecting spec.
thanks!
@zzak At the moment there's most certainly no default delimiter, although I intend to add it in the future. Still, it shouldn't be in the docs at this point.
@charliesome Should I fix the docs? On the other hand it would be cool to have a default value for delimiter - in that case: is " "
a good default value? I'd be happy to provide a fix for this issue.
@vstm If you could open a PR that fixes the default value, that'd be most appreciated!
making a note, i will check on this later if noone else gets to it:
results with:
ArgumentError: Too few arguments. Expected 1, received 0.
to work around this i can do the following: