dynarex-parser 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex-parser.rb +7 -4
- metadata +1 -1
data/lib/dynarex-parser.rb
CHANGED
@@ -9,7 +9,13 @@ class DynarexParser
|
|
9
9
|
def initialize(s)
|
10
10
|
@a = parse(s)
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
|
+
def to_a()
|
14
|
+
@a
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
13
19
|
def parse(s)
|
14
20
|
|
15
21
|
s.instance_eval{
|
@@ -33,7 +39,4 @@ class DynarexParser
|
|
33
39
|
[root_name, "", {}, [*summary], ['records', "",{}, *records]]
|
34
40
|
end
|
35
41
|
|
36
|
-
def to_a()
|
37
|
-
@a
|
38
|
-
end
|
39
42
|
end
|