fun_html 0.3.1 → 0.3.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bf8ac3683a1e55c9178d17d85703ec445c26f8a544db4a778252fa3128eb333
4
- data.tar.gz: 8213e1aec0fff6f4357721ed1df892a3b31069ad2c93a53b0a64c2c40c4a87ad
3
+ metadata.gz: 408c1f602ab42ca9730a5e327cbb7ddacae701ac19a5497a6206f40c219a8dac
4
+ data.tar.gz: 188a2e5af38afa5df96e774cc78842630502cd66459c4df5cfff692d174b58a9
5
5
  SHA512:
6
- metadata.gz: f7373307fa00fad6e75bf8db7b0c490dd1b808d37b05c3406c5a862c39b8170befef1057b01e1c9577966ed11b1d1bf4ada88741ac5bd213314fb241de656fea
7
- data.tar.gz: 13b9377037fd8be26000f9bf746d858645f4326423139beee6a7032f1c37e19fc7290baf10572be84aa3d7c2a303086dc18b5697ec215b8c11c7d0796085bfb9
6
+ metadata.gz: fb350aeaf18aa790b7970229ce2e9952adcc34dc275e41bbdcf56a54a08859136a886796138e82533dd013f3dc092650b3c4e3d822033b7a347199b0bd042836
7
+ data.tar.gz: 45eec5427f947a1360308c7a87ad0f7c62c2ecd57b0e663d967326ee772923280515228b19668a4c85ecd89dc57a43966a9b8da8517d96b55184cc2f375b7881
@@ -57,6 +57,10 @@ module FunHtml
57
57
  write(" data-#{suffix}=\"", value)
58
58
  end
59
59
 
60
+ def attribute(name, value)
61
+ write(" #{name}=\"", value)
62
+ end
63
+
60
64
  # CSS class name(s) for styling, the name changed to protect the Ruby.
61
65
  def klass(value)
62
66
  write(' class="', value)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FunHtml
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.3'
5
5
  end