html-native 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/html-native.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10608cfe99deda77bf919d12ed385dff6364260d596fbb672968c6ed708ca320
4
- data.tar.gz: 511d614f09a21a27506d25289a0f31f36d92864d1235eb2cc26f4c5008ac0aa8
3
+ metadata.gz: f7d9334c86a350e7f344e3c1ba7a959d2dbc2b480ae74f0690dc2e8df45c26d6
4
+ data.tar.gz: 8697f7d54be0f9d86df14c6ccd97b3a52d73b48803a7dce76ce50ea9526549ef
5
5
  SHA512:
6
- metadata.gz: 476f3e92ab73de39f6d05bf96fca229237e44de9e140f25f012e3556a04f61500dc85b8a5c216a1c799bf7db1b8cc14514f8ab65e48563813b6d98792b0964e2
7
- data.tar.gz: 804e56ce1f00a988bc5a590d13351ccd11175d1a7c7be64d7076a4c653ed8a868fb3bd0955da6251f32af161dfeabc3466930b2f8a4bdddc352ea88f1f3b60f6
6
+ metadata.gz: 0bfa60e3c71b9e08e633be4a019922cc6761097e39a9be382f7cbabf2fc2a49ff44f2d4def80a68fd1e6619858ac7c72b08c48a5f6a0b63215bcc947c23ad510
7
+ data.tar.gz: 2d5bfb8a037ca4e6aa243a375b81d503ffa2069f02c2fd1d3c5ae05a59b7b2f24eb8e602516a7e3f22b082367ade7d8e4423deb4fa17abd8a60a90c60b0a2f04
data/lib/html-native.rb CHANGED
@@ -17,6 +17,10 @@ module HTMLComponent
17
17
  end
18
18
  end
19
19
 
20
+ def doctype(type)
21
+ Builder.new("<!DOCTYPE #{type}>")
22
+ end
23
+
20
24
  # Creates a module that encompasses the given block in an HTMLComponent
21
25
  # context. This gives access to methods in the block as though the block was
22
26
  # declared as the `render` function in a module extending HTMLComponent
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kellen Watt