String#split takes a second argument
Reading Rebuilding Rails I noticed split
can be used as such:
'1/2/3/4/5/6/7/8'.split('/', 3)
# => ['1', '2', '3/4/5/6/7/8']
{People,Soft}ware
Reading Rebuilding Rails I noticed split
can be used as such:
'1/2/3/4/5/6/7/8'.split('/', 3)
# => ['1', '2', '3/4/5/6/7/8']