Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit ecb12c9

Browse files
pirjJonRowe
andauthored
Update lib/rspec/support/recursive_const_methods.rb
Co-authored-by: Jon Rowe <[email protected]>
1 parent 987e8d7 commit ecb12c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rspec/support/recursive_const_methods.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module RecursiveConstMethods
99
# class A; B = 1; end
1010
# class C < A; end
1111
#
12+
# Then:
1213
# C.const_get("Hash") # => ::Hash
1314
# C.const_defined?("Hash") # => true
1415
# C.const_get("Hash", false) # => raises NameError

0 commit comments

Comments
 (0)