B
Bigmac Turdsplash
mply = 0
body = "just some data"
proof = 100
VALUE=""
list = ['line1','line2','line3']
foreach(list) do |block|
while mply < 3
puts mply.to_s+block+VALUE
if body.bytesize > proof
print("writing to log.html #{VAULE}")
end
mply = mply + 1
end
mply = 0
end
VALUE="XXXX"
# if you run this example above, you should see something printed like
this
# 0line1
# 1line2
# 2line3
now what im trying to do could easly be done with just doubling this
code but that is messy and i need to clean it up...
how can i produce this output and keep things short and simple
# 0line1
# 0line1XXXX
# 1line2
# 1line2XXXX
# 2line3
# 2line3XXXX
im in irc /server freenode #ruby if some one could help me or just
respond here... this one has me scratching my head for a few days...
body = "just some data"
proof = 100
VALUE=""
list = ['line1','line2','line3']
foreach(list) do |block|
while mply < 3
puts mply.to_s+block+VALUE
if body.bytesize > proof
print("writing to log.html #{VAULE}")
end
mply = mply + 1
end
mply = 0
end
VALUE="XXXX"
# if you run this example above, you should see something printed like
this
# 0line1
# 1line2
# 2line3
now what im trying to do could easly be done with just doubling this
code but that is messy and i need to clean it up...
how can i produce this output and keep things short and simple
# 0line1
# 0line1XXXX
# 1line2
# 1line2XXXX
# 2line3
# 2line3XXXX
im in irc /server freenode #ruby if some one could help me or just
respond here... this one has me scratching my head for a few days...