2014-08-13 19:05:00 +02:00
|
|
|
Array.class_eval do
|
2014-08-14 19:24:26 +02:00
|
|
|
def to_sof(io , members , level)
|
2014-08-15 14:04:13 +02:00
|
|
|
each_with_index do |object , i|
|
|
|
|
io.write(" " * level) unless i == 0
|
2014-08-14 19:24:26 +02:00
|
|
|
io.write("-")
|
2014-08-14 16:40:56 +02:00
|
|
|
members.output(io , object)
|
2014-08-14 19:24:26 +02:00
|
|
|
io.write("\n")
|
2014-08-14 16:40:56 +02:00
|
|
|
end
|
2014-08-13 19:05:00 +02:00
|
|
|
end
|
|
|
|
end
|