-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generically handle all method visibility modifiers (#369)
* Fixtures * Properly handle end spacing for all method-modifiers * Make index a constant and add some more explanatory comments Co-authored-by: Reese Williams <[email protected]>
- Loading branch information
1 parent
d6ee1c7
commit cc74bbb
Showing
7 changed files
with
71 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class Foo | ||
private def bar | ||
42 | ||
end | ||
|
||
private def baz(a, b, c) | ||
a + b + c | ||
end | ||
end | ||
|
||
module WhiteTeaBowl | ||
sig do | ||
params(walking_this: Path) | ||
end | ||
module_function def i_choose_one; end | ||
|
||
sig do | ||
void | ||
end | ||
patch_of def sunlight | ||
"after another" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class Foo | ||
private def bar | ||
42 | ||
end | ||
|
||
private def baz(a, b, c) | ||
a + b + c | ||
end | ||
end | ||
|
||
module WhiteTeaBowl | ||
sig do | ||
params(walking_this: Path) | ||
end | ||
module_function def i_choose_one | ||
end | ||
|
||
sig do | ||
void | ||
end | ||
patch_of def sunlight | ||
"after another" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters