Skip to content

Commit

Permalink
define_method is also private at Ruby 2.3 and 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 11, 2023
1 parent 6cbadf6 commit 3804f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/json_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def test_string_ext_included_calls_super

Module.send(:alias_method, :included_orig, :included)
Module.send(:remove_method, :included)
Module.define_method(:included) do |base|
Module.send(:define_method, :included) do |base|
included_orig(base)
included = true
end
Expand Down

0 comments on commit 3804f38

Please sign in to comment.