Skip to content

Commit b8ee9c8

Browse files
committed
Add rbs monkey patch for rake
1 parent 430f65a commit b8ee9c8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

_gem/sig/non-gemify/rake.rbs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# Monkey path to https://github.com/ruby/gem_rbs_collection/blob/main/gems/rake/13.0/rake.rbs
2+
3+
module Rake
4+
class Task
5+
end
6+
7+
class TaskArguments
8+
include Enumerable[untyped]
9+
10+
def []: (untyped index) -> untyped
11+
def each: () ?{ (untyped, untyped) -> void } -> void
12+
end
13+
14+
module DSL
15+
private
16+
17+
def task: (*untyped args) ?{ (Rake::Task, Rake::TaskArguments) -> void } -> void
18+
| ...
19+
end
20+
end
21+
122
module FileUtils
223
def sh: (Hash[String, String] env, *String cmd, **untyped options) ?{ (bool, Process::Status) -> void } -> void
324
| ...

0 commit comments

Comments
 (0)