html-native 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html-native/logic.rb +4 -4
- 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: 5a2cde975232defdab37e17881582541235abf7448b690b3a2e7078623961e99
|
4
|
+
data.tar.gz: 140e37d1bb7e039a18e159565c35912d6a54cead980872fd9764ad427f4175cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20ebdb417720ef51aceba2c24878861966eba922981201031be892fb6b86390319e57586339d968fc9d77a3237955b8aa580eba3d53b8d1e26cd6446200450d4
|
7
|
+
data.tar.gz: 4b3d8f0fd9fab698b6fb85d8f270fdc015368497f330ac13c4c3124e499399a313540f159d75672d1b4374335532802d94fdac79677e88544e5325391e939b7c
|
data/lib/html-native/logic.rb
CHANGED
@@ -21,18 +21,18 @@ end
|
|
21
21
|
class String
|
22
22
|
define_method(:if) do |bool|
|
23
23
|
if bool
|
24
|
-
Builder.new(self)
|
24
|
+
HTMLComponent::Builder.new(self)
|
25
25
|
else
|
26
|
-
Builder.new
|
26
|
+
HTMLComponent::Builder.new
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
define_method(:unless) do |bool|
|
31
31
|
# BAd form, purely for symmetry
|
32
32
|
unless bool
|
33
|
-
Builder.new(self)
|
33
|
+
HTMLComponent::Builder.new(self)
|
34
34
|
else
|
35
|
-
Builder.new
|
35
|
+
HTMLComponent::Builder.new
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|