Skip to content

Commit 6ee67cc

Browse files
committed
Fix RBS signatures
1 parent ac02672 commit 6ee67cc

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ Lint/RedundantRequireStatement:
1010

1111
Layout/ExtraSpacing:
1212
Enabled: false
13+
14+
Layout/LeadingCommentSpace:
15+
Enabled: false

lib/phlex/sgml.rb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def capture(*args, &block)
179179
end
180180

181181
# Define a named fragment that can be selectively rendered.
182-
# : (String) -> nil
182+
#: (String) -> nil
183183
def fragment(name)
184184
state = @_state
185185
state.begin_fragment(name)
@@ -189,7 +189,7 @@ def fragment(name)
189189
end
190190

191191
# Mark the given string as safe for HTML output.
192-
# : (String) -> Phlex::SGML::SafeValue
192+
#: (String) -> Phlex::SGML::SafeValue
193193
def safe(value)
194194
case value
195195
when String
@@ -202,7 +202,7 @@ def safe(value)
202202
alias_method :🦺, :safe
203203

204204
# Flush the current state to the output buffer.
205-
# : () -> nil
205+
#: () -> nil
206206
def flush
207207
@_state.flush
208208
end
@@ -299,17 +299,17 @@ def app_version_key
299299
end
300300

301301
# Override this method to use a different cache store.
302-
# : () -> untyped
302+
#: () -> untyped
303303
def cache_store
304304
raise "Cache store not implemented."
305305
end
306306

307-
# : () -> bool
307+
#: () -> bool
308308
def enable_cache_reloading?
309309
false
310310
end
311311

312-
# : (*) { (*) -> void } -> nil
312+
#: (*) { (*) -> void } -> nil
313313
def vanish(*args)
314314
return unless block_given?
315315

@@ -322,36 +322,36 @@ def vanish(*args)
322322
nil
323323
end
324324

325-
# : () -> bool
325+
#: () -> bool
326326
def render?
327327
true
328328
end
329329

330-
# : (untyped) -> String | nil
330+
#: (untyped) -> String | nil
331331
def format_object(object)
332332
case object
333333
when Float, Integer
334334
object.to_s
335335
end
336336
end
337337

338-
# : () -> void
338+
#: () -> void
339339
def around_template
340340
yield
341341
nil
342342
end
343343

344-
# : () -> void
344+
#: () -> void
345345
def before_template
346346
nil
347347
end
348348

349-
# : () -> void
349+
#: () -> void
350350
def after_template
351351
nil
352352
end
353353

354-
# : () { (Phlex::SGML) -> void } -> nil
354+
#: () { (Phlex::SGML) -> void } -> nil
355355
def __yield_content__
356356
return unless block_given?
357357

@@ -364,7 +364,7 @@ def __yield_content__
364364
nil
365365
end
366366

367-
# : () { () -> void } -> void
367+
#: () { () -> void } -> void
368368
def __yield_content_with_no_yield_args__
369369
return unless block_given?
370370

@@ -377,7 +377,7 @@ def __yield_content_with_no_yield_args__
377377
nil
378378
end
379379

380-
# : (*) { (*) -> void } -> void
380+
#: (*) { (*) -> void } -> void
381381
def __yield_content_with_args__(*a)
382382
return unless block_given?
383383

@@ -390,7 +390,7 @@ def __yield_content_with_args__(*a)
390390
nil
391391
end
392392

393-
# : (untyped) -> bool
393+
#: (untyped) -> bool
394394
def __implicit_output__(content)
395395
state = @_state
396396
return true unless state.should_render?
@@ -416,7 +416,7 @@ def __implicit_output__(content)
416416
end
417417

418418
# same as __implicit_output__ but escapes even `safe` objects
419-
# : (untyped) -> bool
419+
#: (untyped) -> bool
420420
def __text__(content)
421421
state = @_state
422422
return true unless state.should_render?

0 commit comments

Comments
 (0)