Skip to content

Commit

Permalink
Merge pull request #1557 from tk0miya/update_signature_for_Module_def…
Browse files Browse the repository at this point in the history
…ine_method

core: Update signature for Module.define_method
  • Loading branch information
soutaro authored Oct 30, 2023
2 parents 1ae8980 + 373a21f commit bc17eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/module.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ class Module < Object
# I'm Dino!
# #<B:0x401b39e8>
#
def define_method: (interned symbol, Proc | Method | UnboundMethod method) -> Symbol
| (interned symbol) { () -> untyped } -> Symbol
def define_method: (interned symbol, ^() [self: instance] -> untyped | Method | UnboundMethod method) -> Symbol
| (interned symbol) { () [self: instance] -> untyped } -> Symbol

# <!--
# rdoc-file=object.c
Expand Down

0 comments on commit bc17eee

Please sign in to comment.