Skip to content

Commit c4d6bf6

Browse files
authored
Merge pull request #24 from akouryy/report-rbs
Add report.rbs
2 parents c895c70 + 38760ea commit c4d6bf6

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Steepfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ target :lib do
44
signature "sig"
55

66
check "lib/lrama/bitmap.rb"
7+
check "lib/lrama/report.rb"
78
check "lib/lrama/warning.rb"
89
end

sig/lrama/report.rbs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module Lrama
2+
class Report
3+
module Profile
4+
def self.report_profile: { -> void } -> StackProf::result
5+
end
6+
7+
module Duration
8+
self.@_report_duration_enabled: bool | nil
9+
10+
def self.enable: -> void
11+
def self.enabled?: -> bool
12+
def report_duration: [T] (_ToS method_name) { -> T } -> T
13+
end
14+
end
15+
end

0 commit comments

Comments
 (0)