Skip to content

Commit a74e6d1

Browse files
committed
Add data.rbs
1 parent 2420fd4 commit a74e6d1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

sig/ruby_header_parser/data.rbs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module RubyHeaderParser
2+
class Data
3+
attr_reader data: Hash[untyped, untyped]
4+
5+
def initialize: () -> void
6+
7+
def function_arg_pointer_hint: (function_name: String, pos: Integer) -> (:ref | :array | :ref_array | :function | :sref | :str_array | :in_ref)
8+
9+
def function_self_pointer_hint: (String function_name) -> (:ref | :raw)
10+
11+
def should_generate_function?: (String function_name) -> bool
12+
13+
def should_generate_struct?: (String struct_name) -> bool
14+
15+
def should_generate_type?: (String type_name) -> bool
16+
17+
def should_generate_enum?: (String enum_name) -> bool
18+
end
19+
end

0 commit comments

Comments
 (0)