C
Catsquotl
Hi
i have the following method
-----
def create
length = @txt.length
i = 0
while i < (length + 1)
line = @TxT
line.split(',')
#@arr.push(a)
i += 1
end
end
-------
this works but as soon as i take out the comment.
i get an error something about private method split beeing called on a
nil object.
I found out that this has to do with split that has to be called by self
or something.
what i like to do is have an array of the split arrays.
any ideas?
greet Eelco
i have the following method
-----
def create
length = @txt.length
i = 0
while i < (length + 1)
line = @TxT
line.split(',')
#@arr.push(a)
i += 1
end
end
-------
this works but as soon as i take out the comment.
i get an error something about private method split beeing called on a
nil object.
I found out that this has to do with split that has to be called by self
or something.
what i like to do is have an array of the split arrays.
any ideas?
greet Eelco