immosquare-constants 0.1.1 → 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/immosquare-constants/color.rb +6 -3
- data/lib/immosquare-constants/version.rb +1 -1
- data/lib/immosquare-constants.rb +1 -0
- 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: 2c1d32b001fdccc8140c36c0e4691951071d4ec150cdf0de27b5e8dd4cafc581
|
4
|
+
data.tar.gz: 411dc174017837158cd599ba20bf879dc2b8b5442e95088abe9f4698ceed8d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a95088bad0aebedbfde0b0745bfc79013732bc82b36be715e7892f44f088742749764267b2a281ffc8dd19a3a9ecfbc447ce138ccca9fac73cafcf0de3665efe
|
7
|
+
data.tar.gz: 69d3d3f8515bac2e7d01f823e88c877f52097f810ac6ee050cd4c34a0349be05fb2ddb3843f0a954cabfe194e90250d60964186a8b6e3447c58abd0c4dcff5ae
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module ImmosquareConstants
|
2
|
-
module
|
2
|
+
module Color
|
3
3
|
COLORS = {
|
4
4
|
:aliceblue => "#f0f8ff",
|
5
5
|
:antiquewhite => "#faebd7",
|
@@ -151,9 +151,12 @@ module ImmosquareConstants
|
|
151
151
|
:yellowgreen => "#9acd32"
|
152
152
|
}.freeze
|
153
153
|
|
154
|
+
class << self
|
155
|
+
|
156
|
+
def color_name_to_hex(color_name)
|
157
|
+
COLORS[color_name.to_sym] || nil
|
158
|
+
end
|
154
159
|
|
155
|
-
def color_name_to_hex(color_name)
|
156
|
-
COLORS[color_name.to_sym] || nil
|
157
160
|
end
|
158
161
|
end
|
159
162
|
end
|
data/lib/immosquare-constants.rb
CHANGED