summaryrefslogtreecommitdiff
path: root/defs/id.def
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2021-05-22 12:04:01 +0200
committerJean Boussier <jean.boussier@gmail.com>2022-01-14 11:30:07 +0100
commit8d05047d72d0a4b97f57b23bddbca639375bbd03 (patch)
treed3caaf18c73b9f3423402162626c5dc5abc4965e /defs/id.def
parent53a4e101465a4d2ae38ea3bfd3cb7dd3c9f12f61 (diff)
Add a Module#const_added callback
[Feature #17881] Works similarly to `method_added` but for constants. ```ruby Foo::BAR = 42 # call Foo.const_added(:FOO) class Foo::Baz; end # call Foo.const_added(:Baz) Foo.autoload(:Something, "path") # call Foo.const_added(:Something) ```
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4521
Diffstat (limited to 'defs/id.def')
-rw-r--r--defs/id.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/defs/id.def b/defs/id.def
index 8df6cf12e2..097e34e405 100644
--- a/defs/id.def
+++ b/defs/id.def
@@ -7,6 +7,7 @@ firstline, predefined = __LINE__+1, %[\
inspect
intern
object_id
+ const_added
const_missing
method_missing MethodMissing
method_added