@@ -179,7 +179,7 @@ def capture(*args, &block)
179
179
end
180
180
181
181
# Define a named fragment that can be selectively rendered.
182
- # : (String) -> nil
182
+ #: (String) -> nil
183
183
def fragment ( name )
184
184
state = @_state
185
185
state . begin_fragment ( name )
@@ -189,7 +189,7 @@ def fragment(name)
189
189
end
190
190
191
191
# Mark the given string as safe for HTML output.
192
- # : (String) -> Phlex::SGML::SafeValue
192
+ #: (String) -> Phlex::SGML::SafeValue
193
193
def safe ( value )
194
194
case value
195
195
when String
@@ -202,7 +202,7 @@ def safe(value)
202
202
alias_method :🦺 , :safe
203
203
204
204
# Flush the current state to the output buffer.
205
- # : () -> nil
205
+ #: () -> nil
206
206
def flush
207
207
@_state . flush
208
208
end
@@ -299,17 +299,17 @@ def app_version_key
299
299
end
300
300
301
301
# Override this method to use a different cache store.
302
- # : () -> untyped
302
+ #: () -> untyped
303
303
def cache_store
304
304
raise "Cache store not implemented."
305
305
end
306
306
307
- # : () -> bool
307
+ #: () -> bool
308
308
def enable_cache_reloading?
309
309
false
310
310
end
311
311
312
- # : (*) { (*) -> void } -> nil
312
+ #: (*) { (*) -> void } -> nil
313
313
def vanish ( *args )
314
314
return unless block_given?
315
315
@@ -322,36 +322,36 @@ def vanish(*args)
322
322
nil
323
323
end
324
324
325
- # : () -> bool
325
+ #: () -> bool
326
326
def render?
327
327
true
328
328
end
329
329
330
- # : (untyped) -> String | nil
330
+ #: (untyped) -> String | nil
331
331
def format_object ( object )
332
332
case object
333
333
when Float , Integer
334
334
object . to_s
335
335
end
336
336
end
337
337
338
- # : () -> void
338
+ #: () -> void
339
339
def around_template
340
340
yield
341
341
nil
342
342
end
343
343
344
- # : () -> void
344
+ #: () -> void
345
345
def before_template
346
346
nil
347
347
end
348
348
349
- # : () -> void
349
+ #: () -> void
350
350
def after_template
351
351
nil
352
352
end
353
353
354
- # : () { (Phlex::SGML) -> void } -> nil
354
+ #: () { (Phlex::SGML) -> void } -> nil
355
355
def __yield_content__
356
356
return unless block_given?
357
357
@@ -364,7 +364,7 @@ def __yield_content__
364
364
nil
365
365
end
366
366
367
- # : () { () -> void } -> void
367
+ #: () { () -> void } -> void
368
368
def __yield_content_with_no_yield_args__
369
369
return unless block_given?
370
370
@@ -377,7 +377,7 @@ def __yield_content_with_no_yield_args__
377
377
nil
378
378
end
379
379
380
- # : (*) { (*) -> void } -> void
380
+ #: (*) { (*) -> void } -> void
381
381
def __yield_content_with_args__ ( *a )
382
382
return unless block_given?
383
383
@@ -390,7 +390,7 @@ def __yield_content_with_args__(*a)
390
390
nil
391
391
end
392
392
393
- # : (untyped) -> bool
393
+ #: (untyped) -> bool
394
394
def __implicit_output__ ( content )
395
395
state = @_state
396
396
return true unless state . should_render?
@@ -416,7 +416,7 @@ def __implicit_output__(content)
416
416
end
417
417
418
418
# same as __implicit_output__ but escapes even `safe` objects
419
- # : (untyped) -> bool
419
+ #: (untyped) -> bool
420
420
def __text__ ( content )
421
421
state = @_state
422
422
return true unless state . should_render?
0 commit comments