Skip to content

Commit b8868d6

Browse files
authored
Merge pull request rails#44753 from ghousemohamed/extend-reserved-keywords-list-in-module-delegation
Extends ruby reserved keywords list in Module ext in Active Support
2 parents 95066e5 + 70b8a76 commit b8868d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activesupport/lib/active_support/core_ext/module/delegation.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class Module
77
# option is not used.
88
class DelegationError < NoMethodError; end
99

10-
RUBY_RESERVED_KEYWORDS = %w(alias and BEGIN begin break case class def defined? do
11-
else elsif END end ensure false for if in module next nil not or redo rescue retry
12-
return self super then true undef unless until when while yield)
10+
RUBY_RESERVED_KEYWORDS = %w(__ENCODING__ __LINE__ __FILE__ alias and BEGIN begin break
11+
case class def defined? do else elsif END end ensure false for if in module next nil
12+
not or redo rescue retry return self super then true undef unless until when while yield)
1313
DELEGATION_RESERVED_KEYWORDS = %w(_ arg args block)
1414
DELEGATION_RESERVED_METHOD_NAMES = Set.new(
1515
RUBY_RESERVED_KEYWORDS + DELEGATION_RESERVED_KEYWORDS

0 commit comments

Comments
 (0)