fun_html 0.1.2 → 0.1.4

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.
data/rbi/fun_html.rbx ADDED
@@ -0,0 +1,40 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module FunHtml
5
+ class Template
6
+ include FunHtml::Writer
7
+ include FunHtml::NodeDefinitions::HTMLAllElements
8
+ end
9
+
10
+ module Writer
11
+ def include(func); end
12
+
13
+ sig { params(value: String).returns(T.self_type) }
14
+ def text(value); end
15
+
16
+ sig { params(blk: T.proc.bind(FunHtml::Attribute).void).returns(FunHtml::Attribute) }
17
+ def attr(&blk); end
18
+ def comments(&elements); end
19
+
20
+ sig { returns(T.self_type) }
21
+ def doctype; end
22
+
23
+ sig { returns(String) }
24
+ def render; end
25
+ end
26
+
27
+ class Attribute
28
+ extend T::Sig
29
+ sig { params(attr: FunHtml::Attribute).returns(String) }
30
+ def self.to_html(attr); end
31
+
32
+ sig { params(other: FunHtml::Attribute).returns(FunHtml::Attribute) }
33
+ def merge(other); end
34
+
35
+ include FunHtml::AttributeDefinitions
36
+
37
+ sig { params(buffer: T::Hash[T.untyped, T.untyped], block: T.nilable(T.proc.bind(FunHtml::Attribute).void)).void }
38
+ def initialize(buffer = {}, &block); end
39
+ end
40
+ end