Skip to content

Commit

Permalink
Add module self constraint for Prepend and Chain
Browse files Browse the repository at this point in the history
This `self` constraint declares what the module can extend, and
therefore makes the corresponding `self` methods visible inside these
modules.
  • Loading branch information
lloeki committed Jun 4, 2024
1 parent 83ce3b9 commit 4be4024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sig/graft/hook_point.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module Graft

def disabled?: (String key) -> bool

module Prepend
module Prepend : HookPoint
def installed?: (String key) -> bool

def install: (String key) { () -> untyped } -> void
Expand Down Expand Up @@ -94,7 +94,7 @@ module Graft
def unoverride: (String key) -> void
end

module Chain
module Chain : HookPoint
def installed?: (String key) -> bool

def install: (String key) { () -> untyped } -> void
Expand Down

0 comments on commit 4be4024

Please sign in to comment.