yard-contracts 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yard-contracts/formatters.rb +5 -2
- data/lib/yard-contracts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bd22dd96ef9f882ddf7bd040a48de5baaa0bb6c
|
4
|
+
data.tar.gz: 86617b4be5048bb5aca873a4b1f58a36d990f2a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b9564e8f9cb753cbda5074674d35aeda2ba554b09420885614159181d48292e846bf74c2a72e0750f2db2f54574963e2aea773d93d7b64c75c01d74776bc20b
|
7
|
+
data.tar.gz: bd9b379569cef1d3fe1f7dbda8f8fd29adb677ad957036e9a090435264e9f6004af84d5dd41bd2ace0115169f60eb3cda1874f30be9c452aa06675b10944685e
|
@@ -256,8 +256,11 @@ module Contracts
|
|
256
256
|
con = type
|
257
257
|
begin
|
258
258
|
con = Contracts.const_get(type)
|
259
|
-
rescue
|
260
|
-
|
259
|
+
rescue Exception
|
260
|
+
begin
|
261
|
+
con = eval(type)
|
262
|
+
rescue Exception
|
263
|
+
end
|
261
264
|
end
|
262
265
|
con
|
263
266
|
end
|