m2m_keygen 0.4.9 → 0.5.0

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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/.overcommit.yml +4 -7
  3. data/.rubocop.yml +19 -16
  4. data/.ruby-version +1 -1
  5. data/.streerc +1 -0
  6. data/.tool-versions +1 -1
  7. data/CHANGELOG.md +60 -1
  8. data/Gemfile +2 -2
  9. data/Gemfile.lock +135 -158
  10. data/README.md +64 -78
  11. data/docs/MIGRATING.md +69 -0
  12. data/docs/SPEC.md +245 -0
  13. data/examples/nonce_store/postgres.rb +40 -0
  14. data/examples/nonce_store/redis.rb +23 -0
  15. data/gemfiles/rack_2.gemfile +5 -0
  16. data/gemfiles/rack_3.gemfile +5 -0
  17. data/lib/m2m_keygen/canonicalizer.rb +57 -0
  18. data/lib/m2m_keygen/nonce_store/disabled.rb +19 -0
  19. data/lib/m2m_keygen/nonce_store/memory.rb +64 -0
  20. data/lib/m2m_keygen/nonce_store.rb +18 -0
  21. data/lib/m2m_keygen/rack_validator.rb +72 -19
  22. data/lib/m2m_keygen/request_signer/signed_request.rb +10 -0
  23. data/lib/m2m_keygen/request_signer.rb +118 -0
  24. data/lib/m2m_keygen/signature.rb +41 -39
  25. data/lib/m2m_keygen/types/params_type.rb +6 -17
  26. data/lib/m2m_keygen/version.rb +1 -1
  27. data/lib/m2m_keygen.rb +6 -0
  28. data/m2m_keygen.gemspec +12 -14
  29. data/sorbet/config +1 -0
  30. data/sorbet/rbi/gems/.gitattributes +1 -0
  31. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +45 -79
  32. data/sorbet/rbi/gems/{benchmark@0.2.0.rbi → benchmark@0.5.0.rbi} +91 -58
  33. data/sorbet/rbi/gems/bundler-audit@0.9.3.rbi +397 -0
  34. data/sorbet/rbi/gems/byebug@13.0.0.rbi +3651 -0
  35. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +336 -0
  36. data/sorbet/rbi/gems/concurrent-ruby@1.3.7.rbi +384 -0
  37. data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.6.2.rbi} +189 -199
  38. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +147 -147
  39. data/sorbet/rbi/gems/dotenv@3.2.0.rbi +267 -0
  40. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  41. data/sorbet/rbi/gems/{faker@2.22.0.rbi → faker@3.8.0.rbi} +8468 -3829
  42. data/sorbet/rbi/gems/{ffi@1.15.5.rbi → ffi@1.17.4.rbi} +1 -0
  43. data/sorbet/rbi/gems/{formatador@1.1.0.rbi → formatador@1.2.3.rbi} +1 -0
  44. data/sorbet/rbi/gems/{guard@2.18.0.rbi → guard@2.20.1.rbi} +1 -0
  45. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.15.2.rbi} +687 -827
  46. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  47. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.20.0.rbi} +994 -252
  48. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  49. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  50. data/sorbet/rbi/gems/listen@3.10.0.rbi +9 -0
  51. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  52. data/sorbet/rbi/gems/{lumberjack@1.2.8.rbi → lumberjack@1.4.2.rbi} +1 -0
  53. data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +111 -90
  54. data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.71.0.rbi} +503 -647
  55. data/sorbet/rbi/gems/parallel@2.1.0.rbi +321 -0
  56. data/sorbet/rbi/gems/parser@3.3.11.1.rbi +5229 -0
  57. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +878 -0
  58. data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
  59. data/sorbet/rbi/gems/pry-byebug@3.12.0.rbi +481 -0
  60. data/sorbet/rbi/gems/{pry@0.14.1.rbi → pry@0.16.0.rbi} +2567 -3550
  61. data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.8.1.rbi} +54 -40
  62. data/sorbet/rbi/gems/rack@3.2.6.rbi +4653 -0
  63. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.4.2.rbi} +963 -732
  64. data/sorbet/rbi/gems/{rb-inotify@0.10.1.rbi → rb-inotify@0.11.1.rbi} +1 -0
  65. data/sorbet/rbi/gems/rbi@0.3.14.rbi +5519 -0
  66. data/sorbet/rbi/gems/rbs@4.0.3.rbi +6908 -0
  67. data/sorbet/rbi/gems/regexp_parser@2.12.0.rbi +3398 -0
  68. data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
  69. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  70. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.4.4.rbi} +1085 -894
  71. data/sorbet/rbi/gems/rspec-core@3.13.6.rbi +9475 -0
  72. data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +6108 -0
  73. data/sorbet/rbi/gems/rspec-mocks@3.13.8.rbi +4787 -0
  74. data/sorbet/rbi/gems/rspec-support@3.13.7.rbi +1274 -0
  75. data/sorbet/rbi/gems/rspec@3.13.2.rbi +15 -0
  76. data/sorbet/rbi/gems/rspec_in_context@1.2.2.rbi +294 -0
  77. data/sorbet/rbi/gems/rubocop-ast@1.49.1.rbi +7140 -0
  78. data/sorbet/rbi/gems/rubocop-faker@1.3.0.rbi +88 -0
  79. data/sorbet/rbi/gems/rubocop-performance@1.26.1.rbi +3403 -0
  80. data/sorbet/rbi/gems/rubocop-sorbet@0.12.0.rbi +2448 -0
  81. data/sorbet/rbi/gems/rubocop@1.88.1.rbi +63103 -0
  82. data/sorbet/rbi/gems/ruby-lsp@0.26.9.rbi +28 -0
  83. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  84. data/sorbet/rbi/gems/rubydex@0.2.7.rbi +836 -0
  85. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +90 -0
  86. data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +438 -578
  87. data/sorbet/rbi/gems/spoom@1.8.2.rbi +6691 -0
  88. data/sorbet/rbi/gems/syntax_tree@6.3.0.rbi +22090 -0
  89. data/sorbet/rbi/gems/tapioca@0.19.2.rbi +3597 -0
  90. data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.5.0.rbi} +1085 -1171
  91. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  92. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  93. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  94. data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.9.0.rbi} +142 -99
  95. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.44.rbi} +5350 -6316
  96. data/sorbet/rbi/gems/zeitwerk@2.8.2.rbi +1178 -0
  97. metadata +105 -111
  98. data/.prettierrc.js +0 -4
  99. data/docs/M2mKeygen/Error.html +0 -135
  100. data/docs/M2mKeygen/ParamsEncoder.html +0 -321
  101. data/docs/M2mKeygen/RackValidator.html +0 -533
  102. data/docs/M2mKeygen/Signature.html +0 -680
  103. data/docs/M2mKeygen/Types.html +0 -147
  104. data/docs/M2mKeygen.html +0 -157
  105. data/docs/_index.html +0 -182
  106. data/docs/class_list.html +0 -51
  107. data/docs/css/common.css +0 -1
  108. data/docs/css/full_list.css +0 -58
  109. data/docs/css/style.css +0 -497
  110. data/docs/file.README.html +0 -230
  111. data/docs/file_list.html +0 -56
  112. data/docs/frames.html +0 -17
  113. data/docs/index.html +0 -230
  114. data/docs/js/app.js +0 -314
  115. data/docs/js/full_list.js +0 -216
  116. data/docs/js/jquery.js +0 -4
  117. data/docs/method_list.html +0 -139
  118. data/docs/top-level-namespace.html +0 -110
  119. data/lib/m2m_keygen/params_encoder.rb +0 -56
  120. data/package.json +0 -12
  121. data/sig/m2m_keygen.rbs +0 -4
  122. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +0 -18608
  123. data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -522
  124. data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +0 -308
  125. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3603
  126. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +0 -401
  127. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -11581
  128. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
  129. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -8
  130. data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -3190
  131. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +0 -19
  132. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -133
  133. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3261
  134. data/sorbet/rbi/gems/listen@3.7.1.rbi +0 -1181
  135. data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -1459
  136. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +0 -6514
  137. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
  138. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6826
  139. data/sorbet/rbi/gems/prettier@3.2.0.rbi +0 -22
  140. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  141. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1222
  142. data/sorbet/rbi/gems/rack@2.2.4.rbi +0 -5630
  143. data/sorbet/rbi/gems/rbi@0.0.15.rbi +0 -3007
  144. data/sorbet/rbi/gems/rbs@2.6.0.rbi +0 -8
  145. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3366
  146. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -389
  147. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -10786
  148. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +0 -8170
  149. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -5385
  150. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -1746
  151. data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -187
  152. data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +0 -1113
  153. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7044
  154. data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +0 -106
  155. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +0 -2982
  156. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -990
  157. data/sorbet/rbi/gems/rubocop@1.35.1.rbi +0 -52002
  158. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1239
  159. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -219
  160. data/sorbet/rbi/gems/solargraph@0.46.0.rbi +0 -9075
  161. data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2369
  162. data/sorbet/rbi/gems/syntax_tree-haml@1.3.1.rbi +0 -8
  163. data/sorbet/rbi/gems/syntax_tree-rbs@0.5.0.rbi +0 -8
  164. data/sorbet/rbi/gems/syntax_tree@3.5.0.rbi +0 -8
  165. data/sorbet/rbi/gems/tapioca@0.9.4.rbi +0 -2946
  166. data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -1712
  167. data/sorbet/rbi/gems/tilt@2.0.11.rbi +0 -742
  168. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -5914
  169. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -48
  170. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
  171. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2553
  172. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +0 -867
  173. data/sorbet/rbi/manual.rbi +0 -7
  174. data/yarn.lock +0 -20
@@ -1,1712 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `temple` gem.
5
- # Please instead update this file by running `bin/tapioca gem temple`.
6
-
7
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:6
8
- module Temple; end
9
-
10
- # ERB example implementation
11
- #
12
- # Example usage:
13
- # Temple::ERB::Template.new { "<%= 'Hello, world!' %>" }.render
14
- #
15
- # source://temple-0.8.2/lib/temple.rb:28
16
- module Temple::ERB; end
17
-
18
- # Example ERB engine implementation
19
- #
20
- # @api public
21
- #
22
- # source://temple-0.8.2/lib/temple/erb/engine.rb:6
23
- class Temple::ERB::Engine < ::Temple::Engine; end
24
-
25
- # Example ERB parser
26
- #
27
- # @api public
28
- #
29
- # source://temple-0.8.2/lib/temple/erb/parser.rb:6
30
- class Temple::ERB::Parser < ::Temple::Parser
31
- # @api public
32
- #
33
- # source://temple-0.8.2/lib/temple/erb/parser.rb:9
34
- def call(input); end
35
- end
36
-
37
- # @api public
38
- #
39
- # source://temple-0.8.2/lib/temple/erb/parser.rb:7
40
- Temple::ERB::Parser::ERB_PATTERN = T.let(T.unsafe(nil), Regexp)
41
-
42
- # ERB Template class
43
- #
44
- # source://temple-0.8.2/lib/temple/erb/template.rb:0
45
- class Temple::ERB::Template < ::Temple::Templates::Tilt; end
46
-
47
- # ERB trimming like in erubis
48
- # Deletes spaces around '<% %>' and leave spaces around '<%= %>'.
49
- #
50
- # @api public
51
- #
52
- # source://temple-0.8.2/lib/temple/erb/trimming.rb:6
53
- class Temple::ERB::Trimming < ::Temple::Filter
54
- # @api public
55
- #
56
- # source://temple-0.8.2/lib/temple/erb/trimming.rb:9
57
- def on_multi(*exps); end
58
- end
59
-
60
- # An engine is simply a chain of compilers (that often includes a parser,
61
- # some filters and a generator).
62
- #
63
- # class MyEngine < Temple::Engine
64
- # # First run MyParser, passing the :strict option
65
- # use MyParser, :strict
66
- #
67
- # # Then a custom filter
68
- # use MyFilter
69
- #
70
- # # Then some general optimizations filters
71
- # filter :MultiFlattener
72
- # filter :StaticMerger
73
- # filter :DynamicInliner
74
- #
75
- # # Finally the generator
76
- # generator :ArrayBuffer, :buffer
77
- # end
78
- #
79
- # class SpecialEngine < MyEngine
80
- # append MyCodeOptimizer
81
- # before :ArrayBuffer, Temple::Filters::Validator
82
- # replace :ArrayBuffer, Temple::Generators::RailsOutputBuffer
83
- # end
84
- #
85
- # engine = MyEngine.new(strict: "For MyParser")
86
- # engine.call(something)
87
- #
88
- # @api public
89
- #
90
- # source://temple-0.8.2/lib/temple/engine.rb:31
91
- class Temple::Engine
92
- include ::Temple::Mixins::Options
93
- include ::Temple::Mixins::EngineDSL
94
- extend ::Temple::Mixins::ClassOptions
95
- extend ::Temple::Mixins::ThreadOptions
96
- extend ::Temple::Mixins::EngineDSL
97
-
98
- # @api public
99
- # @return [Engine] a new instance of Engine
100
- #
101
- # source://temple-0.8.2/lib/temple/engine.rb:44
102
- def initialize(opts = T.unsafe(nil)); end
103
-
104
- # @api public
105
- #
106
- # source://temple-0.8.2/lib/temple/engine.rb:49
107
- def call(input); end
108
-
109
- # @api public
110
- #
111
- # source://temple-0.8.2/lib/temple/engine.rb:38
112
- def chain; end
113
-
114
- protected
115
-
116
- # @api public
117
- #
118
- # source://temple-0.8.2/lib/temple/engine.rb:59
119
- def call_chain; end
120
-
121
- # @api public
122
- #
123
- # source://temple-0.8.2/lib/temple/engine.rb:55
124
- def chain_modified!; end
125
-
126
- class << self
127
- # @api public
128
- #
129
- # source://temple-0.8.2/lib/temple/engine.rb:40
130
- def chain; end
131
- end
132
- end
133
-
134
- # Temple base filter
135
- #
136
- # @api public
137
- #
138
- # source://temple-0.8.2/lib/temple/filter.rb:4
139
- class Temple::Filter
140
- include ::Temple::Utils
141
- include ::Temple::Mixins::CompiledDispatcher
142
- include ::Temple::Mixins::CoreDispatcher
143
- include ::Temple::Mixins::EscapeDispatcher
144
- include ::Temple::Mixins::ControlFlowDispatcher
145
- include ::Temple::Mixins::Dispatcher
146
- include ::Temple::Mixins::Options
147
- extend ::Temple::Mixins::ClassOptions
148
- extend ::Temple::Mixins::ThreadOptions
149
- end
150
-
151
- # Exception raised if something bad happens in a Temple filter
152
- #
153
- # @api public
154
- #
155
- # source://temple-0.8.2/lib/temple/exceptions.rb:11
156
- class Temple::FilterError < ::RuntimeError; end
157
-
158
- # source://temple-0.8.2/lib/temple.rb:43
159
- module Temple::Filters; end
160
-
161
- # @api public
162
- #
163
- # source://temple-0.8.2/lib/temple/filters/code_merger.rb:4
164
- class Temple::Filters::CodeMerger < ::Temple::Filter
165
- # @api public
166
- #
167
- # source://temple-0.8.2/lib/temple/filters/code_merger.rb:5
168
- def on_multi(*exps); end
169
- end
170
-
171
- # Control flow filter which processes [:if, condition, yes-exp, no-exp]
172
- # and [:block, code, content] expressions.
173
- # This is useful for ruby code generation with lots of conditionals.
174
- #
175
- # @api public
176
- #
177
- # source://temple-0.8.2/lib/temple/filters/control_flow.rb:8
178
- class Temple::Filters::ControlFlow < ::Temple::Filter
179
- # @api public
180
- #
181
- # source://temple-0.8.2/lib/temple/filters/control_flow.rb:34
182
- def on_block(code, exp); end
183
-
184
- # @api public
185
- #
186
- # source://temple-0.8.2/lib/temple/filters/control_flow.rb:20
187
- def on_case(arg, *cases); end
188
-
189
- # @api public
190
- #
191
- # source://temple-0.8.2/lib/temple/filters/control_flow.rb:30
192
- def on_cond(*cases); end
193
-
194
- # @api public
195
- #
196
- # source://temple-0.8.2/lib/temple/filters/control_flow.rb:9
197
- def on_if(condition, yes, no = T.unsafe(nil)); end
198
- end
199
-
200
- # Inlines several static/dynamic into a single dynamic.
201
- #
202
- # @api public
203
- #
204
- # source://temple-0.8.2/lib/temple/filters/dynamic_inliner.rb:6
205
- class Temple::Filters::DynamicInliner < ::Temple::Filter
206
- # @api public
207
- #
208
- # source://temple-0.8.2/lib/temple/filters/dynamic_inliner.rb:7
209
- def on_multi(*exps); end
210
- end
211
-
212
- # Try to encode input string
213
- #
214
- # @api public
215
- #
216
- # source://temple-0.8.2/lib/temple/filters/encoding.rb:6
217
- class Temple::Filters::Encoding < ::Temple::Parser
218
- # @api public
219
- #
220
- # source://temple-0.8.2/lib/temple/filters/encoding.rb:9
221
- def call(s); end
222
- end
223
-
224
- # Erase expressions with a certain type
225
- #
226
- # @api public
227
- #
228
- # source://temple-0.8.2/lib/temple/filters/eraser.rb:7
229
- class Temple::Filters::Eraser < ::Temple::Filter
230
- # @api public
231
- #
232
- # source://temple-0.8.2/lib/temple/filters/eraser.rb:10
233
- def compile(exp); end
234
-
235
- protected
236
-
237
- # @api public
238
- # @return [Boolean]
239
- #
240
- # source://temple-0.8.2/lib/temple/filters/eraser.rb:17
241
- def do?(list, exp); end
242
- end
243
-
244
- # Escape dynamic or static expressions.
245
- # This filter must be used after Temple::HTML::* and before the generators.
246
- # It can be enclosed with Temple::Filters::DynamicInliner filters to
247
- # reduce calls to Temple::Utils#escape_html.
248
- #
249
- # @api public
250
- #
251
- # source://temple-0.8.2/lib/temple/filters/escapable.rb:10
252
- class Temple::Filters::Escapable < ::Temple::Filter
253
- # @api public
254
- # @return [Escapable] a new instance of Escapable
255
- #
256
- # source://temple-0.8.2/lib/temple/filters/escapable.rb:15
257
- def initialize(opts = T.unsafe(nil)); end
258
-
259
- # @api public
260
- #
261
- # source://temple-0.8.2/lib/temple/filters/escapable.rb:35
262
- def on_dynamic(value); end
263
-
264
- # @api public
265
- #
266
- # source://temple-0.8.2/lib/temple/filters/escapable.rb:23
267
- def on_escape(flag, exp); end
268
-
269
- # @api public
270
- #
271
- # source://temple-0.8.2/lib/temple/filters/escapable.rb:31
272
- def on_static(value); end
273
- end
274
-
275
- # Flattens nested multi expressions
276
- #
277
- # @api public
278
- #
279
- # source://temple-0.8.2/lib/temple/filters/multi_flattener.rb:6
280
- class Temple::Filters::MultiFlattener < ::Temple::Filter
281
- # @api public
282
- #
283
- # source://temple-0.8.2/lib/temple/filters/multi_flattener.rb:7
284
- def on_multi(*exps); end
285
- end
286
-
287
- # Remove BOM from input string
288
- #
289
- # @api public
290
- #
291
- # source://temple-0.8.2/lib/temple/filters/remove_bom.rb:6
292
- class Temple::Filters::RemoveBOM < ::Temple::Parser
293
- # @api public
294
- #
295
- # source://temple-0.8.2/lib/temple/filters/remove_bom.rb:7
296
- def call(s); end
297
- end
298
-
299
- # Convert [:dynamic, code] to [:static, text] if code is static Ruby expression.
300
- #
301
- # source://temple-0.8.2/lib/temple/filters/static_analyzer.rb:4
302
- class Temple::Filters::StaticAnalyzer < ::Temple::Filter
303
- # source://temple-0.8.2/lib/temple/filters/static_analyzer.rb:5
304
- def call(exp); end
305
-
306
- # source://temple-0.8.2/lib/temple/filters/static_analyzer.rb:14
307
- def on_dynamic(code); end
308
- end
309
-
310
- # Merges several statics into a single static. Example:
311
- #
312
- # [:multi,
313
- # [:static, "Hello "],
314
- # [:static, "World!"]]
315
- #
316
- # Compiles to:
317
- #
318
- # [:static, "Hello World!"]
319
- #
320
- # @api public
321
- #
322
- # source://temple-0.8.2/lib/temple/filters/static_merger.rb:14
323
- class Temple::Filters::StaticMerger < ::Temple::Filter
324
- # @api public
325
- #
326
- # source://temple-0.8.2/lib/temple/filters/static_merger.rb:15
327
- def on_multi(*exps); end
328
- end
329
-
330
- # Compile [:dynamic, "foo#{bar}"] to [:multi, [:static, 'foo'], [:dynamic, 'bar']]
331
- #
332
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:9
333
- class Temple::Filters::StringSplitter < ::Temple::Filter
334
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:77
335
- def on_dynamic(code); end
336
-
337
- private
338
-
339
- # @return [Boolean]
340
- #
341
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:95
342
- def string_literal?(code); end
343
-
344
- class << self
345
- # `code` param must be valid string literal
346
- #
347
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:13
348
- def compile(code); end
349
-
350
- private
351
-
352
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:41
353
- def compile_tokens!(exps, tokens); end
354
-
355
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:57
356
- def shift_balanced_embexpr(tokens); end
357
-
358
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:27
359
- def strip_quotes!(tokens); end
360
- end
361
- end
362
-
363
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:106
364
- class Temple::Filters::StringSplitter::SyntaxChecker < ::Ripper
365
- private
366
-
367
- # @raise [ParseError]
368
- #
369
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:118
370
- def on_parse_error(*_arg0); end
371
-
372
- class << self
373
- # @return [Boolean]
374
- #
375
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:109
376
- def syntax_error?(code); end
377
- end
378
- end
379
-
380
- # source://temple-0.8.2/lib/temple/filters/string_splitter.rb:107
381
- class Temple::Filters::StringSplitter::SyntaxChecker::ParseError < ::StandardError; end
382
-
383
- # Validates temple expression with given grammar
384
- #
385
- # @api public
386
- #
387
- # source://temple-0.8.2/lib/temple/filters/validator.rb:6
388
- class Temple::Filters::Validator < ::Temple::Filter
389
- # @api public
390
- #
391
- # source://temple-0.8.2/lib/temple/filters/validator.rb:9
392
- def compile(exp); end
393
- end
394
-
395
- # Abstract generator base class
396
- # Generators should inherit this class and
397
- # compile the Core Abstraction to ruby code.
398
- #
399
- # @api public
400
- #
401
- # source://temple-0.8.2/lib/temple/generator.rb:7
402
- class Temple::Generator
403
- include ::Temple::Utils
404
- include ::Temple::Mixins::CompiledDispatcher
405
- include ::Temple::Mixins::Options
406
- extend ::Temple::Mixins::ClassOptions
407
- extend ::Temple::Mixins::ThreadOptions
408
-
409
- # @api public
410
- #
411
- # source://temple-0.8.2/lib/temple/generator.rb:17
412
- def call(exp); end
413
-
414
- # @api public
415
- #
416
- # source://temple-0.8.2/lib/temple/generator.rb:37
417
- def create_buffer; end
418
-
419
- # @api public
420
- # @raise [InvalidExpression]
421
- #
422
- # source://temple-0.8.2/lib/temple/generator.rb:44
423
- def on(*exp); end
424
-
425
- # @api public
426
- #
427
- # source://temple-0.8.2/lib/temple/generator.rb:56
428
- def on_capture(name, exp); end
429
-
430
- # @api public
431
- #
432
- # source://temple-0.8.2/lib/temple/generator.rb:68
433
- def on_code(code); end
434
-
435
- # @api public
436
- #
437
- # source://temple-0.8.2/lib/temple/generator.rb:64
438
- def on_dynamic(code); end
439
-
440
- # @api public
441
- #
442
- # source://temple-0.8.2/lib/temple/generator.rb:48
443
- def on_multi(*exp); end
444
-
445
- # @api public
446
- #
447
- # source://temple-0.8.2/lib/temple/generator.rb:52
448
- def on_newline; end
449
-
450
- # @api public
451
- #
452
- # source://temple-0.8.2/lib/temple/generator.rb:60
453
- def on_static(text); end
454
-
455
- # @api public
456
- #
457
- # source://temple-0.8.2/lib/temple/generator.rb:25
458
- def postamble; end
459
-
460
- # @api public
461
- #
462
- # source://temple-0.8.2/lib/temple/generator.rb:21
463
- def preamble; end
464
-
465
- # @api public
466
- #
467
- # source://temple-0.8.2/lib/temple/generator.rb:33
468
- def restore_buffer; end
469
-
470
- # @api public
471
- #
472
- # source://temple-0.8.2/lib/temple/generator.rb:40
473
- def return_buffer; end
474
-
475
- # @api public
476
- #
477
- # source://temple-0.8.2/lib/temple/generator.rb:29
478
- def save_buffer; end
479
-
480
- protected
481
-
482
- # @api public
483
- #
484
- # source://temple-0.8.2/lib/temple/generator.rb:74
485
- def buffer; end
486
-
487
- # @api public
488
- #
489
- # source://temple-0.8.2/lib/temple/generator.rb:78
490
- def capture_generator; end
491
-
492
- # @api public
493
- #
494
- # source://temple-0.8.2/lib/temple/generator.rb:84
495
- def concat(str); end
496
- end
497
-
498
- # source://temple-0.8.2/lib/temple.rb:35
499
- module Temple::Generators; end
500
-
501
- # Implements an array buffer.
502
- #
503
- # _buf = []
504
- # _buf << "static"
505
- # _buf << dynamic
506
- # _buf
507
- #
508
- # @api public
509
- #
510
- # source://temple-0.8.2/lib/temple/generators/array.rb:11
511
- class Temple::Generators::Array < ::Temple::Generator
512
- # @api public
513
- #
514
- # source://temple-0.8.2/lib/temple/generators/array.rb:12
515
- def create_buffer; end
516
-
517
- # @api public
518
- #
519
- # source://temple-0.8.2/lib/temple/generators/array.rb:16
520
- def return_buffer; end
521
- end
522
-
523
- # Just like Array, but calls #join on the array.
524
- #
525
- # _buf = []
526
- # _buf << "static"
527
- # _buf << dynamic
528
- # _buf.join("")
529
- #
530
- # @api public
531
- #
532
- # source://temple-0.8.2/lib/temple/generators/array_buffer.rb:11
533
- class Temple::Generators::ArrayBuffer < ::Temple::Generators::Array
534
- # @api public
535
- #
536
- # source://temple-0.8.2/lib/temple/generators/array_buffer.rb:12
537
- def call(exp); end
538
-
539
- # @api public
540
- #
541
- # source://temple-0.8.2/lib/temple/generators/array_buffer.rb:23
542
- def return_buffer; end
543
- end
544
-
545
- # Implements an ERB generator.
546
- #
547
- # @api public
548
- #
549
- # source://temple-0.8.2/lib/temple/generators/erb.rb:6
550
- class Temple::Generators::ERB < ::Temple::Generator
551
- # @api public
552
- #
553
- # source://temple-0.8.2/lib/temple/generators/erb.rb:7
554
- def call(exp); end
555
-
556
- # @api public
557
- #
558
- # source://temple-0.8.2/lib/temple/generators/erb.rb:15
559
- def on_capture(name, exp); end
560
-
561
- # @api public
562
- #
563
- # source://temple-0.8.2/lib/temple/generators/erb.rb:27
564
- def on_code(code); end
565
-
566
- # @api public
567
- #
568
- # source://temple-0.8.2/lib/temple/generators/erb.rb:23
569
- def on_dynamic(code); end
570
-
571
- # @api public
572
- #
573
- # source://temple-0.8.2/lib/temple/generators/erb.rb:11
574
- def on_multi(*exp); end
575
-
576
- # @api public
577
- #
578
- # source://temple-0.8.2/lib/temple/generators/erb.rb:19
579
- def on_static(text); end
580
- end
581
-
582
- # Implements a rails output buffer.
583
- #
584
- # @output_buffer = ActiveSupport::SafeBuffer
585
- # @output_buffer.safe_concat "static"
586
- # @output_buffer.safe_concat dynamic.to_s
587
- # @output_buffer
588
- #
589
- # @api public
590
- #
591
- # source://temple-0.8.2/lib/temple/generators/rails_output_buffer.rb:11
592
- class Temple::Generators::RailsOutputBuffer < ::Temple::Generators::StringBuffer
593
- # @api public
594
- #
595
- # source://temple-0.8.2/lib/temple/generators/rails_output_buffer.rb:18
596
- def call(exp); end
597
-
598
- # @api public
599
- #
600
- # source://temple-0.8.2/lib/temple/generators/rails_output_buffer.rb:30
601
- def concat(str); end
602
-
603
- # @api public
604
- #
605
- # source://temple-0.8.2/lib/temple/generators/rails_output_buffer.rb:22
606
- def create_buffer; end
607
- end
608
-
609
- # Implements a string buffer.
610
- #
611
- # _buf = ''
612
- # _buf << "static"
613
- # _buf << dynamic.to_s
614
- # _buf
615
- #
616
- # @api public
617
- #
618
- # source://temple-0.8.2/lib/temple/generators/string_buffer.rb:11
619
- class Temple::Generators::StringBuffer < ::Temple::Generators::ArrayBuffer
620
- # @api public
621
- #
622
- # source://temple-0.8.2/lib/temple/generators/string_buffer.rb:12
623
- def create_buffer; end
624
-
625
- # @api public
626
- #
627
- # source://temple-0.8.2/lib/temple/generators/string_buffer.rb:20
628
- def on_dynamic(code); end
629
-
630
- # @api public
631
- #
632
- # source://temple-0.8.2/lib/temple/generators/string_buffer.rb:16
633
- def return_buffer; end
634
- end
635
-
636
- # Temple expression grammar which can be used to validate Temple expressions.
637
- #
638
- # Example:
639
- # Temple::Grammar.match? [:static, 'Valid Temple Expression']
640
- # Temple::Grammar.validate! [:multi, 'Invalid Temple Expression']
641
- #
642
- # See {file:EXPRESSIONS.md Expression documentation}.
643
- #
644
- # @api public
645
- #
646
- # source://temple-0.8.2/lib/temple/grammar.rb:11
647
- module Temple::Grammar
648
- extend ::Temple::Mixins::GrammarDSL
649
- end
650
-
651
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:166
652
- Temple::Grammar::Bool = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
653
-
654
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:166
655
- Temple::Grammar::Case = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
656
-
657
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:166
658
- Temple::Grammar::Condition = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
659
-
660
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:166
661
- Temple::Grammar::EmptyExp = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
662
-
663
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:166
664
- Temple::Grammar::Expression = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
665
-
666
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:166
667
- Temple::Grammar::HTMLAttr = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
668
-
669
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:166
670
- Temple::Grammar::HTMLIdentifier = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
671
-
672
- # source://temple-0.8.2/lib/temple.rb:58
673
- module Temple::HTML; end
674
-
675
- # This filter merges html attributes (e.g. used for id and class)
676
- #
677
- # @api public
678
- #
679
- # source://temple-0.8.2/lib/temple/html/attribute_merger.rb:5
680
- class Temple::HTML::AttributeMerger < ::Temple::HTML::Filter
681
- # @api public
682
- #
683
- # source://temple-0.8.2/lib/temple/html/attribute_merger.rb:8
684
- def on_html_attrs(*attrs); end
685
- end
686
-
687
- # This filter removes empty attributes
688
- #
689
- # @api public
690
- #
691
- # source://temple-0.8.2/lib/temple/html/attribute_remover.rb:5
692
- class Temple::HTML::AttributeRemover < ::Temple::HTML::Filter
693
- # @api public
694
- # @raise [ArgumentError]
695
- # @return [AttributeRemover] a new instance of AttributeRemover
696
- #
697
- # source://temple-0.8.2/lib/temple/html/attribute_remover.rb:8
698
- def initialize(opts = T.unsafe(nil)); end
699
-
700
- # @api public
701
- #
702
- # source://temple-0.8.2/lib/temple/html/attribute_remover.rb:18
703
- def on_html_attr(name, value); end
704
-
705
- # @api public
706
- #
707
- # source://temple-0.8.2/lib/temple/html/attribute_remover.rb:14
708
- def on_html_attrs(*attrs); end
709
- end
710
-
711
- # This filter sorts html attributes.
712
- #
713
- # @api public
714
- #
715
- # source://temple-0.8.2/lib/temple/html/attribute_sorter.rb:5
716
- class Temple::HTML::AttributeSorter < ::Temple::HTML::Filter
717
- # @api public
718
- #
719
- # source://temple-0.8.2/lib/temple/html/attribute_sorter.rb:8
720
- def call(exp); end
721
-
722
- # @api public
723
- #
724
- # source://temple-0.8.2/lib/temple/html/attribute_sorter.rb:12
725
- def on_html_attrs(*attrs); end
726
- end
727
-
728
- # @api private
729
- #
730
- # source://temple-0.8.2/lib/temple/html/dispatcher.rb:4
731
- module Temple::HTML::Dispatcher
732
- # @api private
733
- #
734
- # source://temple-0.8.2/lib/temple/html/dispatcher.rb:9
735
- def on_html_attr(name, content); end
736
-
737
- # @api private
738
- #
739
- # source://temple-0.8.2/lib/temple/html/dispatcher.rb:5
740
- def on_html_attrs(*attrs); end
741
-
742
- # @api private
743
- #
744
- # source://temple-0.8.2/lib/temple/html/dispatcher.rb:13
745
- def on_html_comment(content); end
746
-
747
- # @api private
748
- #
749
- # source://temple-0.8.2/lib/temple/html/dispatcher.rb:17
750
- def on_html_condcomment(condition, content); end
751
-
752
- # @api private
753
- #
754
- # source://temple-0.8.2/lib/temple/html/dispatcher.rb:21
755
- def on_html_js(content); end
756
-
757
- # @api private
758
- #
759
- # source://temple-0.8.2/lib/temple/html/dispatcher.rb:25
760
- def on_html_tag(name, attrs, content = T.unsafe(nil)); end
761
- end
762
-
763
- # @api public
764
- #
765
- # source://temple-0.8.2/lib/temple/html/fast.rb:4
766
- class Temple::HTML::Fast < ::Temple::HTML::Filter
767
- # @api public
768
- # @return [Fast] a new instance of Fast
769
- #
770
- # source://temple-0.8.2/lib/temple/html/fast.rb:36
771
- def initialize(opts = T.unsafe(nil)); end
772
-
773
- # @api public
774
- #
775
- # source://temple-0.8.2/lib/temple/html/fast.rb:107
776
- def on_html_attr(name, value); end
777
-
778
- # @api public
779
- #
780
- # source://temple-0.8.2/lib/temple/html/fast.rb:103
781
- def on_html_attrs(*attrs); end
782
-
783
- # @api public
784
- #
785
- # source://temple-0.8.2/lib/temple/html/fast.rb:79
786
- def on_html_comment(content); end
787
-
788
- # @api public
789
- #
790
- # source://temple-0.8.2/lib/temple/html/fast.rb:86
791
- def on_html_condcomment(condition, content); end
792
-
793
- # @api public
794
- #
795
- # source://temple-0.8.2/lib/temple/html/fast.rb:65
796
- def on_html_doctype(type); end
797
-
798
- # @api public
799
- #
800
- # source://temple-0.8.2/lib/temple/html/fast.rb:118
801
- def on_html_js(content); end
802
-
803
- # @api public
804
- #
805
- # source://temple-0.8.2/lib/temple/html/fast.rb:93
806
- def on_html_tag(name, attrs, content = T.unsafe(nil)); end
807
- end
808
-
809
- # @api public
810
- #
811
- # source://temple-0.8.2/lib/temple/html/fast.rb:5
812
- Temple::HTML::Fast::DOCTYPES = T.let(T.unsafe(nil), Hash)
813
-
814
- # See http://www.w3.org/html/wg/drafts/html/master/single-page.html#void-elements
815
- #
816
- # @api public
817
- #
818
- # source://temple-0.8.2/lib/temple/html/fast.rb:29
819
- Temple::HTML::Fast::HTML_VOID_ELEMENTS = T.let(T.unsafe(nil), Array)
820
-
821
- # @api public
822
- #
823
- # source://temple-0.8.2/lib/temple/html/filter.rb:4
824
- class Temple::HTML::Filter < ::Temple::Filter
825
- include ::Temple::HTML::Dispatcher
826
-
827
- # @api public
828
- # @return [Boolean]
829
- #
830
- # source://temple-0.8.2/lib/temple/html/filter.rb:7
831
- def contains_nonempty_static?(exp); end
832
- end
833
-
834
- # @api public
835
- #
836
- # source://temple-0.8.2/lib/temple/html/pretty.rb:4
837
- class Temple::HTML::Pretty < ::Temple::HTML::Fast
838
- # @api public
839
- # @return [Pretty] a new instance of Pretty
840
- #
841
- # source://temple-0.8.2/lib/temple/html/pretty.rb:14
842
- def initialize(opts = T.unsafe(nil)); end
843
-
844
- # @api public
845
- #
846
- # source://temple-0.8.2/lib/temple/html/pretty.rb:22
847
- def call(exp); end
848
-
849
- # @api public
850
- #
851
- # source://temple-0.8.2/lib/temple/html/pretty.rb:36
852
- def on_dynamic(code); end
853
-
854
- # @api public
855
- #
856
- # source://temple-0.8.2/lib/temple/html/pretty.rb:47
857
- def on_html_comment(content); end
858
-
859
- # @api public
860
- #
861
- # source://temple-0.8.2/lib/temple/html/pretty.rb:42
862
- def on_html_doctype(type); end
863
-
864
- # @api public
865
- #
866
- # source://temple-0.8.2/lib/temple/html/pretty.rb:54
867
- def on_html_tag(name, attrs, content = T.unsafe(nil)); end
868
-
869
- # @api public
870
- #
871
- # source://temple-0.8.2/lib/temple/html/pretty.rb:26
872
- def on_static(content); end
873
-
874
- protected
875
-
876
- # @api public
877
- #
878
- # source://temple-0.8.2/lib/temple/html/pretty.rb:86
879
- def indent; end
880
-
881
- # @api public
882
- #
883
- # source://temple-0.8.2/lib/temple/html/pretty.rb:80
884
- def preamble; end
885
-
886
- # Return indentation before tag
887
- #
888
- # @api public
889
- #
890
- # source://temple-0.8.2/lib/temple/html/pretty.rb:91
891
- def tag_indent(name); end
892
- end
893
-
894
- # Immutable map class which supports map merging
895
- #
896
- # @api public
897
- #
898
- # source://temple-0.8.2/lib/temple/map.rb:4
899
- class Temple::ImmutableMap
900
- include ::Enumerable
901
-
902
- # @api public
903
- # @return [ImmutableMap] a new instance of ImmutableMap
904
- #
905
- # source://temple-0.8.2/lib/temple/map.rb:7
906
- def initialize(*map); end
907
-
908
- # @api public
909
- #
910
- # source://temple-0.8.2/lib/temple/map.rb:15
911
- def [](key); end
912
-
913
- # @api public
914
- #
915
- # source://temple-0.8.2/lib/temple/map.rb:20
916
- def each; end
917
-
918
- # @api public
919
- # @return [Boolean]
920
- #
921
- # source://temple-0.8.2/lib/temple/map.rb:11
922
- def include?(key); end
923
-
924
- # @api public
925
- #
926
- # source://temple-0.8.2/lib/temple/map.rb:24
927
- def keys; end
928
-
929
- # @api public
930
- #
931
- # source://temple-0.8.2/lib/temple/map.rb:32
932
- def to_hash; end
933
-
934
- # @api public
935
- #
936
- # source://temple-0.8.2/lib/temple/map.rb:28
937
- def values; end
938
- end
939
-
940
- # Exception raised if invalid temple expression is found
941
- #
942
- # @api public
943
- #
944
- # source://temple-0.8.2/lib/temple/exceptions.rb:5
945
- class Temple::InvalidExpression < ::RuntimeError; end
946
-
947
- # source://temple-0.8.2/lib/temple.rb:18
948
- module Temple::Mixins; end
949
-
950
- # @api public
951
- #
952
- # source://temple-0.8.2/lib/temple/mixins/options.rb:4
953
- module Temple::Mixins::ClassOptions
954
- # @api public
955
- #
956
- # source://temple-0.8.2/lib/temple/mixins/options.rb:10
957
- def default_options; end
958
-
959
- # @api public
960
- #
961
- # source://temple-0.8.2/lib/temple/mixins/options.rb:35
962
- def define_deprecated_options(*opts); end
963
-
964
- # @api public
965
- #
966
- # source://temple-0.8.2/lib/temple/mixins/options.rb:26
967
- def define_options(*opts); end
968
-
969
- # @api public
970
- #
971
- # source://temple-0.8.2/lib/temple/mixins/options.rb:44
972
- def disable_option_validator!; end
973
-
974
- # @api public
975
- #
976
- # source://temple-0.8.2/lib/temple/mixins/options.rb:19
977
- def options; end
978
-
979
- # @api public
980
- #
981
- # source://temple-0.8.2/lib/temple/mixins/options.rb:5
982
- def set_default_options(opts); end
983
-
984
- # @api public
985
- #
986
- # source://temple-0.8.2/lib/temple/mixins/options.rb:15
987
- def set_options(opts); end
988
- end
989
-
990
- # @api private
991
- #
992
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:43
993
- module Temple::Mixins::CompiledDispatcher
994
- # @api private
995
- #
996
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:44
997
- def call(exp); end
998
-
999
- # @api private
1000
- #
1001
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:48
1002
- def compile(exp); end
1003
-
1004
- private
1005
-
1006
- # @api private
1007
- #
1008
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:72
1009
- def dispatched_methods; end
1010
-
1011
- # @api private
1012
- #
1013
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:54
1014
- def dispatcher(exp); end
1015
-
1016
- # @api private
1017
- #
1018
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:58
1019
- def replace_dispatcher(exp); end
1020
- end
1021
-
1022
- # @api private
1023
- #
1024
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:78
1025
- class Temple::Mixins::CompiledDispatcher::DispatchNode < ::Hash
1026
- # @api private
1027
- # @return [DispatchNode] a new instance of DispatchNode
1028
- #
1029
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:81
1030
- def initialize; end
1031
-
1032
- # @api private
1033
- #
1034
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:86
1035
- def compile(level = T.unsafe(nil), call_parent = T.unsafe(nil)); end
1036
-
1037
- # @api private
1038
- #
1039
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:79
1040
- def method; end
1041
-
1042
- # @api private
1043
- #
1044
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:79
1045
- def method=(_arg0); end
1046
- end
1047
-
1048
- # @api private
1049
- #
1050
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:24
1051
- module Temple::Mixins::ControlFlowDispatcher
1052
- # @api private
1053
- #
1054
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:33
1055
- def on_block(code, content); end
1056
-
1057
- # @api private
1058
- #
1059
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:29
1060
- def on_case(arg, *cases); end
1061
-
1062
- # @api private
1063
- #
1064
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:37
1065
- def on_cond(*cases); end
1066
-
1067
- # @api private
1068
- #
1069
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:25
1070
- def on_if(condition, *cases); end
1071
- end
1072
-
1073
- # @api private
1074
- #
1075
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:4
1076
- module Temple::Mixins::CoreDispatcher
1077
- # @api private
1078
- #
1079
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:11
1080
- def on_capture(name, exp); end
1081
-
1082
- # @api private
1083
- #
1084
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:5
1085
- def on_multi(*exps); end
1086
- end
1087
-
1088
- # Implements a compatible call-method
1089
- # based on the including classe's methods.
1090
- #
1091
- # It uses every method starting with
1092
- # "on" and uses the rest of the method
1093
- # name as prefix of the expression it
1094
- # will receive. So, if a dispatcher
1095
- # has a method named "on_x", this method
1096
- # will be called with arg0,..,argN
1097
- # whenever an expression like [:x, arg0,..,argN ]
1098
- # is encountered.
1099
- #
1100
- # This works with longer prefixes, too.
1101
- # For example a method named "on_y_z"
1102
- # will be called whenever an expression
1103
- # like [:y, :z, .. ] is found. Furthermore,
1104
- # if additionally a method named "on_y"
1105
- # is present, it will be called when an
1106
- # expression starts with :y but then does
1107
- # not contain with :z. This way a
1108
- # dispatcher can implement namespaces.
1109
- #
1110
- # @api public
1111
- # @example
1112
- # class MyAwesomeDispatch
1113
- # include Temple::Mixins::Dispatcher
1114
- # def on_awesome(thing) # keep awesome things
1115
- # return [:awesome, thing]
1116
- # end
1117
- # def on_boring(thing) # make boring things awesome
1118
- # return [:awesome, thing+" with bacon"]
1119
- # end
1120
- # def on(type,*args) # unknown stuff is boring too
1121
- # return [:awesome, 'just bacon']
1122
- # end
1123
- # end
1124
- # filter = MyAwesomeDispatch.new
1125
- # # Boring things are converted:
1126
- # filter.call([:boring, 'egg']) #=> [:awesome, 'egg with bacon']
1127
- # # Unknown things too:
1128
- # filter.call([:foo]) #=> [:awesome, 'just bacon']
1129
- # # Known but not boring things won't be touched:
1130
- # filter.call([:awesome, 'chuck norris']) #=>[:awesome, 'chuck norris']
1131
- # @note Processing does not reach into unknown
1132
- # expression types by default.
1133
- #
1134
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:154
1135
- module Temple::Mixins::Dispatcher
1136
- include ::Temple::Mixins::CompiledDispatcher
1137
- include ::Temple::Mixins::CoreDispatcher
1138
- include ::Temple::Mixins::EscapeDispatcher
1139
- include ::Temple::Mixins::ControlFlowDispatcher
1140
- end
1141
-
1142
- # @api private
1143
- #
1144
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:4
1145
- module Temple::Mixins::EngineDSL
1146
- # @api private
1147
- #
1148
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:34
1149
- def after(name, *args, &block); end
1150
-
1151
- # @api private
1152
- #
1153
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:8
1154
- def append(*args, &block); end
1155
-
1156
- # @api private
1157
- #
1158
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:26
1159
- def before(name, *args, &block); end
1160
-
1161
- # @api private
1162
- #
1163
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:5
1164
- def chain_modified!; end
1165
-
1166
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:54
1167
- def filter(name, *options); end
1168
-
1169
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:54
1170
- def generator(name, *options); end
1171
-
1172
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:54
1173
- def html(name, *options); end
1174
-
1175
- # @api private
1176
- #
1177
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:13
1178
- def prepend(*args, &block); end
1179
-
1180
- # @api private
1181
- #
1182
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:18
1183
- def remove(name); end
1184
-
1185
- # @api private
1186
- #
1187
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:42
1188
- def replace(name, *args, &block); end
1189
-
1190
- # @api private
1191
- #
1192
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:8
1193
- def use(*args, &block); end
1194
-
1195
- private
1196
-
1197
- # @api private
1198
- #
1199
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:74
1200
- def chain_class_constructor(filter, local_options); end
1201
-
1202
- # @api private
1203
- #
1204
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:107
1205
- def chain_element(args, block); end
1206
-
1207
- # @api private
1208
- #
1209
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:61
1210
- def chain_name(name); end
1211
-
1212
- # @api private
1213
- # @raise [ArgumentError]
1214
- #
1215
- # source://temple-0.8.2/lib/temple/mixins/engine_dsl.rb:84
1216
- def chain_proc_constructor(name, filter); end
1217
- end
1218
-
1219
- # @api private
1220
- #
1221
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:17
1222
- module Temple::Mixins::EscapeDispatcher
1223
- # @api private
1224
- #
1225
- # source://temple-0.8.2/lib/temple/mixins/dispatcher.rb:18
1226
- def on_escape(flag, exp); end
1227
- end
1228
-
1229
- # @api private
1230
- #
1231
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:4
1232
- module Temple::Mixins::GrammarDSL
1233
- # @api private
1234
- # @return [Boolean]
1235
- #
1236
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:122
1237
- def ===(exp); end
1238
-
1239
- # @api private
1240
- # @return [Boolean]
1241
- #
1242
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:122
1243
- def =~(exp); end
1244
-
1245
- # @api private
1246
- #
1247
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:136
1248
- def Rule(rule); end
1249
-
1250
- # @api private
1251
- #
1252
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:132
1253
- def Value(value); end
1254
-
1255
- # @api private
1256
- #
1257
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:165
1258
- def const_missing(name); end
1259
-
1260
- # @api private
1261
- #
1262
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:115
1263
- def extended(mod); end
1264
-
1265
- # @api private
1266
- # @return [Boolean]
1267
- #
1268
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:122
1269
- def match?(exp); end
1270
-
1271
- # @api private
1272
- #
1273
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:128
1274
- def validate!(exp); end
1275
- end
1276
-
1277
- # @api private
1278
- #
1279
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:84
1280
- class Temple::Mixins::GrammarDSL::Element < ::Temple::Mixins::GrammarDSL::Or
1281
- # @api private
1282
- # @return [Element] a new instance of Element
1283
- #
1284
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:85
1285
- def initialize(grammar, rule); end
1286
-
1287
- # @api private
1288
- #
1289
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:96
1290
- def after_copy(source); end
1291
-
1292
- # @api private
1293
- #
1294
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:90
1295
- def match(exp, unmatched); end
1296
- end
1297
-
1298
- # @api private
1299
- #
1300
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:27
1301
- class Temple::Mixins::GrammarDSL::Or < ::Temple::Mixins::GrammarDSL::Rule
1302
- # @api private
1303
- # @return [Or] a new instance of Or
1304
- #
1305
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:28
1306
- def initialize(grammar, *children); end
1307
-
1308
- # @api private
1309
- #
1310
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:33
1311
- def <<(rule); end
1312
-
1313
- # @api private
1314
- #
1315
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:45
1316
- def after_copy(source); end
1317
-
1318
- # @api private
1319
- #
1320
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:40
1321
- def match(exp, unmatched); end
1322
-
1323
- # @api private
1324
- #
1325
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:33
1326
- def |(rule); end
1327
- end
1328
-
1329
- # @api private
1330
- #
1331
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:50
1332
- class Temple::Mixins::GrammarDSL::Root < ::Temple::Mixins::GrammarDSL::Or
1333
- # @api private
1334
- # @return [Root] a new instance of Root
1335
- #
1336
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:51
1337
- def initialize(grammar, name); end
1338
-
1339
- # @api private
1340
- #
1341
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:78
1342
- def after_copy(source); end
1343
-
1344
- # @api private
1345
- #
1346
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:74
1347
- def copy_to(grammar); end
1348
-
1349
- # @api private
1350
- #
1351
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:56
1352
- def match(exp, unmatched); end
1353
-
1354
- # @api private
1355
- #
1356
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:62
1357
- def validate!(exp); end
1358
- end
1359
-
1360
- # @api private
1361
- #
1362
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:5
1363
- class Temple::Mixins::GrammarDSL::Rule
1364
- # @api private
1365
- # @return [Rule] a new instance of Rule
1366
- #
1367
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:6
1368
- def initialize(grammar); end
1369
-
1370
- # @api private
1371
- # @return [Boolean]
1372
- #
1373
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:10
1374
- def ===(exp); end
1375
-
1376
- # @api private
1377
- # @return [Boolean]
1378
- #
1379
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:10
1380
- def =~(exp); end
1381
-
1382
- # @api private
1383
- #
1384
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:20
1385
- def copy_to(grammar); end
1386
-
1387
- # @api private
1388
- # @return [Boolean]
1389
- #
1390
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:10
1391
- def match?(exp); end
1392
-
1393
- # @api private
1394
- #
1395
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:16
1396
- def |(rule); end
1397
- end
1398
-
1399
- # @api private
1400
- #
1401
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:104
1402
- class Temple::Mixins::GrammarDSL::Value < ::Temple::Mixins::GrammarDSL::Rule
1403
- # @api private
1404
- # @return [Value] a new instance of Value
1405
- #
1406
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:105
1407
- def initialize(grammar, value); end
1408
-
1409
- # @api private
1410
- #
1411
- # source://temple-0.8.2/lib/temple/mixins/grammar_dsl.rb:110
1412
- def match(exp, unmatched); end
1413
- end
1414
-
1415
- # @api public
1416
- #
1417
- # source://temple-0.8.2/lib/temple/mixins/options.rb:70
1418
- module Temple::Mixins::Options
1419
- mixes_in_class_methods ::Temple::Mixins::ClassOptions
1420
- mixes_in_class_methods ::Temple::Mixins::ThreadOptions
1421
-
1422
- # @api public
1423
- #
1424
- # source://temple-0.8.2/lib/temple/mixins/options.rb:80
1425
- def initialize(opts = T.unsafe(nil)); end
1426
-
1427
- # @api public
1428
- #
1429
- # source://temple-0.8.2/lib/temple/mixins/options.rb:78
1430
- def options; end
1431
-
1432
- class << self
1433
- # @api public
1434
- # @private
1435
- #
1436
- # source://temple-0.8.2/lib/temple/mixins/options.rb:71
1437
- def included(base); end
1438
- end
1439
- end
1440
-
1441
- # @api private
1442
- #
1443
- # source://temple-0.8.2/lib/temple/mixins/template.rb:4
1444
- module Temple::Mixins::Template
1445
- include ::Temple::Mixins::ClassOptions
1446
-
1447
- # @api private
1448
- #
1449
- # source://temple-0.8.2/lib/temple/mixins/template.rb:7
1450
- def compile(code, options); end
1451
-
1452
- # @api private
1453
- #
1454
- # source://temple-0.8.2/lib/temple/mixins/template.rb:17
1455
- def create(engine, options); end
1456
-
1457
- # @api private
1458
- # @raise [NotImplementedError]
1459
- #
1460
- # source://temple-0.8.2/lib/temple/mixins/template.rb:13
1461
- def register_as(*names); end
1462
- end
1463
-
1464
- # source://temple-0.8.2/lib/temple/mixins/options.rb:49
1465
- module Temple::Mixins::ThreadOptions
1466
- # source://temple-0.8.2/lib/temple/mixins/options.rb:58
1467
- def thread_options; end
1468
-
1469
- # source://temple-0.8.2/lib/temple/mixins/options.rb:50
1470
- def with_options(options); end
1471
-
1472
- protected
1473
-
1474
- # source://temple-0.8.2/lib/temple/mixins/options.rb:64
1475
- def thread_options_key; end
1476
- end
1477
-
1478
- # Mutable map class which supports map merging
1479
- #
1480
- # @api public
1481
- #
1482
- # source://temple-0.8.2/lib/temple/map.rb:41
1483
- class Temple::MutableMap < ::Temple::ImmutableMap
1484
- # @api public
1485
- # @return [MutableMap] a new instance of MutableMap
1486
- #
1487
- # source://temple-0.8.2/lib/temple/map.rb:42
1488
- def initialize(*map); end
1489
-
1490
- # @api public
1491
- #
1492
- # source://temple-0.8.2/lib/temple/map.rb:46
1493
- def []=(key, value); end
1494
-
1495
- # @api public
1496
- #
1497
- # source://temple-0.8.2/lib/temple/map.rb:50
1498
- def update(map); end
1499
- end
1500
-
1501
- # source://temple-0.8.2/lib/temple/map.rb:55
1502
- class Temple::OptionMap < ::Temple::MutableMap
1503
- # @return [OptionMap] a new instance of OptionMap
1504
- #
1505
- # source://temple-0.8.2/lib/temple/map.rb:56
1506
- def initialize(*map, &block); end
1507
-
1508
- # source://temple-0.8.2/lib/temple/map.rb:63
1509
- def []=(key, value); end
1510
-
1511
- # source://temple-0.8.2/lib/temple/map.rb:82
1512
- def add_deprecated_keys(*keys); end
1513
-
1514
- # source://temple-0.8.2/lib/temple/map.rb:78
1515
- def add_valid_keys(*keys); end
1516
-
1517
- # @return [Boolean]
1518
- #
1519
- # source://temple-0.8.2/lib/temple/map.rb:95
1520
- def deprecated_key?(key); end
1521
-
1522
- # source://temple-0.8.2/lib/temple/map.rb:68
1523
- def update(map); end
1524
-
1525
- # @return [Boolean]
1526
- #
1527
- # source://temple-0.8.2/lib/temple/map.rb:100
1528
- def valid_key?(key); end
1529
-
1530
- # source://temple-0.8.2/lib/temple/map.rb:73
1531
- def valid_keys; end
1532
-
1533
- # source://temple-0.8.2/lib/temple/map.rb:90
1534
- def validate_key!(key); end
1535
-
1536
- # source://temple-0.8.2/lib/temple/map.rb:86
1537
- def validate_map!(map); end
1538
- end
1539
-
1540
- # Temple base parser
1541
- #
1542
- # @api public
1543
- #
1544
- # source://temple-0.8.2/lib/temple/parser.rb:4
1545
- class Temple::Parser
1546
- include ::Temple::Utils
1547
- include ::Temple::Mixins::Options
1548
- extend ::Temple::Mixins::ClassOptions
1549
- extend ::Temple::Mixins::ThreadOptions
1550
- end
1551
-
1552
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:7
1553
- module Temple::StaticAnalyzer
1554
- class << self
1555
- # @return [Boolean]
1556
- #
1557
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:32
1558
- def available?; end
1559
-
1560
- # @return [Boolean]
1561
- #
1562
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:36
1563
- def static?(code); end
1564
-
1565
- # @return [Boolean]
1566
- #
1567
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:57
1568
- def syntax_error?(code); end
1569
- end
1570
- end
1571
-
1572
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:19
1573
- Temple::StaticAnalyzer::DYNAMIC_TOKENS = T.let(T.unsafe(nil), Array)
1574
-
1575
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:23
1576
- Temple::StaticAnalyzer::STATIC_KEYWORDS = T.let(T.unsafe(nil), Array)
1577
-
1578
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:27
1579
- Temple::StaticAnalyzer::STATIC_OPERATORS = T.let(T.unsafe(nil), Array)
1580
-
1581
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:8
1582
- Temple::StaticAnalyzer::STATIC_TOKENS = T.let(T.unsafe(nil), Array)
1583
-
1584
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:66
1585
- class Temple::StaticAnalyzer::SyntaxChecker < ::Ripper
1586
- private
1587
-
1588
- # @raise [ParseError]
1589
- #
1590
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:71
1591
- def on_parse_error(*_arg0); end
1592
- end
1593
-
1594
- # source://temple-0.8.2/lib/temple/static_analyzer.rb:67
1595
- class Temple::StaticAnalyzer::SyntaxChecker::ParseError < ::StandardError; end
1596
-
1597
- # @api public
1598
- #
1599
- # source://temple-0.8.2/lib/temple/templates.rb:3
1600
- module Temple::Templates
1601
- class << self
1602
- # @api public
1603
- #
1604
- # source://temple-0.8.2/lib/temple/templates.rb:7
1605
- def method_missing(name, engine, options = T.unsafe(nil)); end
1606
- end
1607
- end
1608
-
1609
- # source://temple-0.8.2/lib/temple/templates/rails.rb:3
1610
- class Temple::Templates::Rails
1611
- extend ::Temple::Mixins::ClassOptions
1612
- extend ::Temple::Mixins::Template
1613
-
1614
- # source://temple-0.8.2/lib/temple/templates/rails.rb:6
1615
- def call(template, source = T.unsafe(nil)); end
1616
-
1617
- # @return [Boolean]
1618
- #
1619
- # source://temple-0.8.2/lib/temple/templates/rails.rb:11
1620
- def supports_streaming?; end
1621
-
1622
- class << self
1623
- # source://temple-0.8.2/lib/temple/templates/rails.rb:15
1624
- def register_as(*names); end
1625
- end
1626
- end
1627
-
1628
- # source://temple-0.8.2/lib/temple/templates/tilt.rb:5
1629
- class Temple::Templates::Tilt < ::Tilt::Template
1630
- extend ::Temple::Mixins::ClassOptions
1631
- extend ::Temple::Mixins::Template
1632
-
1633
- # A string containing the (Ruby) source code for the template.
1634
- #
1635
- # @param locals [Hash] Local variables
1636
- # @return [String] Compiled template ruby code
1637
- #
1638
- # source://temple-0.8.2/lib/temple/templates/tilt.rb:37
1639
- def precompiled_template(locals = T.unsafe(nil)); end
1640
-
1641
- # Prepare Temple template
1642
- #
1643
- # Called immediately after template data is loaded.
1644
- #
1645
- # @return [void]
1646
- #
1647
- # source://temple-0.8.2/lib/temple/templates/tilt.rb:23
1648
- def prepare; end
1649
-
1650
- class << self
1651
- # source://temple-0.8.2/lib/temple/templates/tilt.rb:10
1652
- def default_mime_type; end
1653
-
1654
- # source://temple-0.8.2/lib/temple/templates/tilt.rb:14
1655
- def default_mime_type=(mime_type); end
1656
-
1657
- # source://temple-0.8.2/lib/temple/templates/tilt.rb:41
1658
- def register_as(*names); end
1659
- end
1660
- end
1661
-
1662
- # @api public
1663
- #
1664
- # source://temple-0.8.2/lib/temple/utils.rb:12
1665
- module Temple::Utils
1666
- extend ::Temple::Utils
1667
-
1668
- # Check if expression is empty
1669
- #
1670
- # @api public
1671
- # @param exp [Array] Temple expression
1672
- # @return [Boolean] true if expression is empty
1673
- #
1674
- # source://temple-0.8.2/lib/temple/utils.rb:76
1675
- def empty_exp?(exp); end
1676
-
1677
- # Returns an escaped copy of `html`.
1678
- #
1679
- # @api public
1680
- # @param html [String] The string to escape
1681
- # @return [String] The escaped string
1682
- #
1683
- # source://temple-0.8.2/lib/temple/utils.rb:37
1684
- def escape_html(html); end
1685
-
1686
- # Returns an escaped copy of `html`.
1687
- # Strings which are declared as html_safe are not escaped.
1688
- #
1689
- # @api public
1690
- # @param html [String] The string to escape
1691
- # @return [String] The escaped string
1692
- #
1693
- # source://temple-0.8.2/lib/temple/utils.rb:20
1694
- def escape_html_safe(html); end
1695
-
1696
- # @api public
1697
- #
1698
- # source://temple-0.8.2/lib/temple/utils.rb:87
1699
- def indent_dynamic(text, indent_next, indent, pre_tags = T.unsafe(nil)); end
1700
-
1701
- # Generate unique variable name
1702
- #
1703
- # @api public
1704
- # @param prefix [String] Variable name prefix
1705
- # @return [String] Variable name
1706
- #
1707
- # source://temple-0.8.2/lib/temple/utils.rb:66
1708
- def unique_name(prefix = T.unsafe(nil)); end
1709
- end
1710
-
1711
- # source://temple-0.8.2/lib/temple/version.rb:2
1712
- Temple::VERSION = T.let(T.unsafe(nil), String)