2014-08-13 19:05:00 +02:00
|
|
|
Array.class_eval do
|
2014-08-17 20:44:34 +02:00
|
|
|
def to_sof_node(writer , level)
|
2014-08-18 07:19:48 +02:00
|
|
|
node = Sof::ArrayNode.new()
|
2014-08-15 21:29:48 +02:00
|
|
|
each do |object|
|
2014-08-17 20:44:34 +02:00
|
|
|
node.add writer.to_sof_node( object )
|
2014-08-14 16:40:56 +02:00
|
|
|
end
|
2014-08-15 21:29:48 +02:00
|
|
|
node
|
2014-08-13 19:05:00 +02:00
|
|
|
end
|
|
|
|
end
|