dynarex 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dynarex.rb +4 -3
  2. metadata +1 -1
@@ -7,9 +7,10 @@ require 'builder'
7
7
  class Dynarex
8
8
  include REXML
9
9
 
10
- attr_accessor :default_key
11
-
12
- def initialize(location)
10
+ def initialize(opt)
11
+ o = {xml: '', default_key: ''}.merge opt
12
+ location = o[:xml]
13
+ @default_key = o[:default_key]
13
14
  open(location)
14
15
  end
15
16
 
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors: []
7
7