constrain 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 +4 -4
- data/lib/constrain.rb +1 -1
- data/lib/constrain/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: c176bf713350005e558d37a3b88b08f2a5f0ba37f0d2a829aa1d4b5dd1e8b0b4
|
4
|
+
data.tar.gz: 02f69468f0130af3c702159b3cff2def10f1755916bc774e903f3d6cb8136fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5117883c01aa7658dd4adefcabb8af14c761090abb407d4141fd6f9321828d8f386f6dccba634d8e08af09bd893d8457d05495cbeba2a91f66d52af92e5c1b4e
|
7
|
+
data.tar.gz: 5dc0238f65e4a6771b9a2bca452ab9eabb160c17ca32cec143a835bceb2296a317a661b7faa613a2c0148b3a3e236aef82e64351064a66b250ba146a8b9b5d36
|
data/lib/constrain.rb
CHANGED
@@ -65,7 +65,7 @@ module Constrain
|
|
65
65
|
#
|
66
66
|
def self.fmt_expr(expr)
|
67
67
|
case expr
|
68
|
-
when Class; expr.to_s
|
68
|
+
when Class, Module; expr.to_s
|
69
69
|
when Array; "[" + expr.map { |expr| fmt_expr(expr) }.join(", ") + "]"
|
70
70
|
when Hash; "{" + expr.map { |k,v| "#{fmt_expr(k)} => #{fmt_expr(v)}" }.join(", ") + "}"
|
71
71
|
when Proc; "Proc@#{expr.source_location.first}:#{expr.source_location.last}"
|
data/lib/constrain/version.rb
CHANGED