rgviz 0.10 → 0.11

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/rgviz/table.rb +12 -0
  2. metadata +3 -3
data/lib/rgviz/table.rb CHANGED
@@ -15,6 +15,12 @@ module Rgviz
15
15
  attr_accessor :type
16
16
  attr_accessor :pattern
17
17
  attr_accessor :p
18
+
19
+ def initialize(attributes = {})
20
+ attributes.each do |key, value|
21
+ self.send "#{key}=", value
22
+ end
23
+ end
18
24
  end
19
25
 
20
26
  class Row
@@ -29,5 +35,11 @@ module Rgviz
29
35
  attr_accessor :v
30
36
  attr_accessor :f
31
37
  attr_accessor :p
38
+
39
+ def initialize(attributes = {})
40
+ attributes.each do |key, value|
41
+ self.send "#{key}=", value
42
+ end
43
+ end
32
44
  end
33
45
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 10
9
- version: "0.10"
8
+ - 11
9
+ version: "0.11"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig