svgle 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fd14fc46ed3e7bf33d58024aa50862943b47a3a
4
- data.tar.gz: 120d90ae2b2626b2e6b59eab6ec52eff50e8273f
3
+ metadata.gz: 5f7ddc0bb3476bf997bd0e04c30b86d76738d2d6
4
+ data.tar.gz: 5b31965da5698a14262fe4cbd2611530418e8d33
5
5
  SHA512:
6
- metadata.gz: d18aa93886242f3fab912510d44cfac572ded412bc1d9205947e01006254b24fadf052d0bfb28b520d0a9c5a30fc95fb041c9436dc9280c0eadd8f6636fbd18a
7
- data.tar.gz: 69facfdf3058d1492ffed3033346a72de326f9ff286875f4024e13a7c5ec7ce27a79df020a993ba831c45c106185e5b754de3cc4b15d90bd67e9bf832eba9354
6
+ metadata.gz: 90511e09064d67305a03023050decf6e36433bba1578a05320fdfa6d285b52c7b77c206da8bb6e3aea2d86eafcca9dbf0fb852a26f988bf98a6afbde58b4b887
7
+ data.tar.gz: 3b7063f7035d1b02107f42687f9c0dd155dd4849ceb61c16b334b111d83bf6d07027368c23a57854a94ad2bce317f4d7e4b5521b2db69d1cfa210704943eb576
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/svgle.rb CHANGED
@@ -8,6 +8,7 @@ require 'rexle'
8
8
  #
9
9
  # * https://developer.mozilla.org/en-US/docs/Web/SVG/Element
10
10
  # * http://www.w3schools.com/svg/svg_reference.asp
11
+ # * http://tutorials.jenkov.com/svg/svg-transformation.html#transformation-example
11
12
 
12
13
 
13
14
  class Style < Hash
@@ -54,7 +55,7 @@ class Svgle < Rexle
54
55
 
55
56
  def self.attr2_accessor(*a)
56
57
 
57
- a.concat %i(id style)
58
+ a.concat %i(id transform)
58
59
 
59
60
  a.each do |attribute|
60
61
 
@@ -70,7 +71,11 @@ class Svgle < Rexle
70
71
 
71
72
  end
72
73
  end
73
- end
74
+ end
75
+
76
+ def style()
77
+ attributes.style
78
+ end
74
79
  end
75
80
 
76
81
  class A < Element
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svgle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file