lab5 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lab5.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75268c48fac789b2713d7fdfcf8e30b6d97ce6b4
|
4
|
+
data.tar.gz: 5743cd842dd55c9d3019e4689c3b8cc8c41635ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a2c97d53662f227edabb52b64b81918902a16f4aeaf4eaa0469ad57253552063b6555e9de72ea596f076a4410b8505268044baf405d3cb95268cde452996590
|
7
|
+
data.tar.gz: 01ae064160f7d43bc83787dba1288e99e9bb5386da02ce9dae61286a14dd4837d0eb22db429741d851d743dcb8c95110d31cd769239250cf6b3c5339662a1f3a
|
data/lib/lab5.rb
CHANGED
@@ -3,8 +3,8 @@ require 'xmlsimple'
|
|
3
3
|
|
4
4
|
class XmlSerializer
|
5
5
|
def self.xml_ser(array)
|
6
|
-
hash = array.map { |item| object_to_hash(item) }
|
7
|
-
XmlSimple.xml_out(
|
6
|
+
# hash = array.map { |item| object_to_hash(item) }
|
7
|
+
XmlSimple.xml_out(array, { 'KeepRoot' => true })
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.yaml_deser(xml)
|