stax 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stax/base.rb +2 -1
- data/lib/stax/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06f8aeb89322dc7d31c7b5bdc699520b29b4d640940e7779e2ba2f77de75e601
|
4
|
+
data.tar.gz: 8166f68815882ecd5dd364833b0acb84191e3c134b887cea891303f096ce2a27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03dd97bda322adaeef60bc55160d1b09975e142902720e7b17954174a727d839877e3c4239bbc793db7bcb21ab06b555698ac1e96be80b1eb726b5e3fcd96caf
|
7
|
+
data.tar.gz: a13960b0bc841d7d9da7fba25820b520a1deab724828387a3a6a09a04e1bb082cac578b129cf8a380b1b653c55fb3353e0121a7db17f6f0eefd757d7e15fbca6
|
data/lib/stax/base.rb
CHANGED
@@ -27,7 +27,8 @@ module Stax
|
|
27
27
|
|
28
28
|
## find or create a stack object
|
29
29
|
def stack(id)
|
30
|
-
|
30
|
+
c = id.to_s.split(/[_-]/).map(&:capitalize).join # convert symbol to class string
|
31
|
+
object = Stax.const_get(c)
|
31
32
|
ObjectSpace.each_object(object).first || object.new([], options)
|
32
33
|
end
|
33
34
|
|
data/lib/stax/version.rb
CHANGED