Skip to content

Commit

Permalink
Merge pull request #372 from hmnhf/remove-kernel-patch
Browse files Browse the repository at this point in the history
Remove Kernel's define_singleton_method patch
  • Loading branch information
pierre authored Jul 31, 2023
2 parents ae2e8ac + 9663fad commit 985e5c9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/kaui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,3 @@ def self.config
}
end
end

# ruby-1.8 compatibility
module Kernel
# rubocop:disable Style/ArgumentsForwarding
def define_singleton_method(*args, &)
class << self
self
end.send(:define_method, *args, &)
end
# rubocop:enable Style/ArgumentsForwarding
end

0 comments on commit 985e5c9

Please sign in to comment.