Skip to content

Commit 82fe069

Browse files
committed
add comment
1 parent 427ea50 commit 82fe069

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/bashly/script/introspection/commands.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module Bashly
22
module Script
33
module Introspection
44
module Commands
5+
# Returns true if the command or any of its descendants has `catch_all`
56
def catch_all_used_anywhere?
67
deep_commands(include_self: true).any? { |x| x.catch_all.enabled? }
78
end

0 commit comments

Comments
 (0)