Fix Sorbet/
group offenses in docs example code
- T::Sig hasn't been needed in every file for a long time.
This commit is contained in:
parent
1fe968e937
commit
6485324b18
@ -12,8 +12,6 @@ The `sig` method is used to annotate method signatures. Here's a simple example:
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class MyClass
|
class MyClass
|
||||||
extend T::Sig
|
|
||||||
|
|
||||||
sig { params(name: String).returns(String) }
|
sig { params(name: String).returns(String) }
|
||||||
def my_method(name)
|
def my_method(name)
|
||||||
"Hello, #{name}!"
|
"Hello, #{name}!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user