lab5 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/lab5.rb +11 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0b07654a7d9c8825bc7cdddea42bc4c6fe11b98e
4
+ data.tar.gz: 5705107c7f2b5f64da1f369d5342c9c678b811a6
5
+ SHA512:
6
+ metadata.gz: eef3a25e21879ca5cd16958b976f7642341aad135172464954988ca16491ff66112f751a7c089c7f70a7bb4804d10ae8cb34235e48a986075d18601d3f2e0576
7
+ data.tar.gz: 00cc8b9f059ea44bc4a31f571db6faeda564ae4ff907c78e1080c01d525f698b681d1ee6893714c67fe69d6be1e3022913795e9a6762a4597af2c83c18340cd9
data/lib/lab5.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'ox'
2
+
3
+ class XmlSerializer
4
+ def self.xml_ser(array)
5
+ Ox.dump(array)
6
+ end
7
+
8
+ def self.yaml_deser(xml)
9
+ Ox.parse(xml)
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lab5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Tatiana Karpesh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: XML serializer/deserializer
14
+ email: tatiana.karpesh@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/lab5.rb
20
+ homepage: https://rubygems.org/gems/lab5
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubyforge_project:
39
+ rubygems_version: 2.4.6
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: lab5
43
+ test_files: []