Skip to content

Commit

Permalink
Exclude method defs containing underscore char.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboris committed Oct 19, 2024
1 parent 62b0961 commit 544e72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ let emit_class_method_def class_name ~open_modules =
Inspect.methods cls
|> List.filter_map (fun m ->
let cmd = Sel.get_name (Method.get_name m) in
if String.begins_with_char '_' cmd || String.begins_with_char '.' cmd then
if String.member "_" cmd || String.begins_with_char '.' cmd then
Option.none
else
Option.some (cmd, Method.get_type_encoding m))
Expand Down

0 comments on commit 544e72a

Please sign in to comment.