dynarex 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/dynarex.rb +5 -1
  2. metadata +1 -1
@@ -17,6 +17,10 @@ class Dynarex
17
17
  def records
18
18
  @records
19
19
  end
20
+
21
+ def save(filepath)
22
+ File.open(filepath,'w'){|f| @doc.write f}
23
+ end
20
24
 
21
25
  private
22
26
 
@@ -31,7 +35,7 @@ class Dynarex
31
35
  @doc = Document.new buffer
32
36
  @summary = summary_to_h
33
37
  @records = records_to_h
34
- end
38
+ end
35
39
 
36
40
  def display()
37
41
  puts @doc.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors: []
7
7