Skip to content

Commit 3fc82c9

Browse files
committed
Autocorrect by RuboCop
Applied followings - RBS/Layout/SpaceAroundOperators - RBS/Layout/OverloadIndentation - RBS/Layout/SpaceBeforeOverload - RBS/Layout/ExtraSpacing - RBS/Layout/SpaceAroundBraces
1 parent 26e04eb commit 3fc82c9

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

core/kernel.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ module Kernel : BasicObject
675675
| (int | _ToR rational_like, exception: bool) -> Rational?
676676
| (int | _ToR numer, ?int | _ToR denom, ?exception: true) -> Rational
677677
| (int | _ToR numer, ?int | _ToR denom, exception: bool) -> Rational?
678-
| [T] (Numeric&_RationalDiv[T] numer, Numeric denom, ?exception: bool) -> T
678+
| [T] (Numeric & _RationalDiv[T] numer, Numeric denom, ?exception: bool) -> T
679679
| [T < Numeric] (T value, 1, ?exception: bool) -> T
680680
| (untyped, ?untyped, ?exception: bool) -> Rational?
681681

core/rbs/unnamed/env_class.rbs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ module RBS
231231
#
232232
%a{annotate:rdoc:copy:ENV.fetch}
233233
def fetch: (String name) -> String
234-
| [X] (String name, X default) -> (String | X)
235-
| [X] (String name) { (String) -> X } -> (String | X)
234+
| [X] (String name, X default) -> (String | X)
235+
| [X] (String name) { (String) -> X } -> (String | X)
236236

237237
# <!--
238238
# rdoc-file=hash.c
@@ -382,7 +382,7 @@ module RBS
382382
#
383383
%a{annotate:rdoc:copy:ENV.each_pair}
384384
def each_pair: () -> ::Enumerator[[ String, String ], self]
385-
| () { ([ String, String ]) -> void } -> self
385+
| () { ([ String, String ]) -> void } -> self
386386

387387
# <!--
388388
# rdoc-file=hash.c
@@ -479,7 +479,7 @@ module RBS
479479
#
480480
%a{annotate:rdoc:copy:ENV.delete_if}
481481
def delete_if: () -> ::Enumerator[[ String, String ], self]
482-
| () { (String name, String value) -> boolish } -> self
482+
| () { (String name, String value) -> boolish } -> self
483483

484484
# <!--
485485
# rdoc-file=hash.c
@@ -501,7 +501,7 @@ module RBS
501501
#
502502
%a{annotate:rdoc:copy:ENV.keep_if}
503503
def keep_if: () -> ::Enumerator[[ String, String ], self]
504-
| () { (String name, String value) -> boolish } -> self
504+
| () { (String name, String value) -> boolish } -> self
505505

506506
# <!--
507507
# rdoc-file=hash.c
@@ -588,7 +588,7 @@ module RBS
588588
#
589589
%a{annotate:rdoc:copy:ENV.reject!}
590590
def reject!: () -> ::Enumerator[[ String, String ], self?]
591-
| () { (String name, String value) -> boolish } -> self?
591+
| () { (String name, String value) -> boolish } -> self?
592592

593593
# <!--
594594
# rdoc-file=hash.c
@@ -674,7 +674,7 @@ module RBS
674674
#
675675
%a{annotate:rdoc:copy:ENV.select!}
676676
def select!: () -> ::Enumerator[[ String, String ], self?]
677-
| () { (String name, String value) -> boolish } -> self?
677+
| () { (String name, String value) -> boolish } -> self?
678678

679679
# <!--
680680
# rdoc-file=hash.c

core/rbs/unnamed/random.rbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ module RBS
224224
#
225225
%a{annotate:rdoc:copy:Random::Formatter#random_number}
226226
def random_number: () -> Float
227-
| (?Float? n) -> Float
228-
| (?Integer? n) -> Integer
229-
| (?Numeric? n) -> Numeric
230-
| (?::Range[Float]? n) -> Float
231-
| (?::Range[Integer]? n) -> Integer
232-
| (?::Range[Numeric]? n) -> Numeric
227+
| (?Float? n) -> Float
228+
| (?Integer? n) -> Integer
229+
| (?Numeric? n) -> Numeric
230+
| (?::Range[Float]? n) -> Float
231+
| (?::Range[Integer]? n) -> Integer
232+
| (?::Range[Numeric]? n) -> Numeric
233233

234234
# <!--
235235
# rdoc-file=lib/random/formatter.rb

core/trace_point.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class TracePoint < Object
352352
# trace.enable { p tp.lineno }
353353
# #=> RuntimeError: access from outside
354354
#
355-
def enable: (?target: (Method | UnboundMethod | Proc)?, ?target_line: Integer?, ?target_thread: Thread?) -> bool
355+
def enable: (?target: (Method | UnboundMethod | Proc)?, ?target_line: Integer?, ?target_thread: Thread?) -> bool
356356
| [R] (?target: (Method | UnboundMethod | Proc)?, ?target_line: Integer?, ?target_thread: Thread?) { () -> R } -> R
357357

358358
# <!--

stdlib/zlib/0/deflate.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ module Zlib
154154
# SYNC_FLUSH, FULL_FLUSH and FINISH.
155155
#
156156
def flush: (?Integer flush) -> String
157-
| (?Integer flush) {(String chunk) -> nil } -> nil
157+
| (?Integer flush) { (String chunk) -> nil } -> nil
158158

159159
# <!--
160160
# rdoc-file=ext/zlib/zlib.c

0 commit comments

Comments
 (0)