Skip to content

Commit

Permalink
Define Hash.ruby2_keywords_hash? singleton method
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 19, 2021
1 parent 2ee450c commit 51c47c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby2_keywords.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def ruby2_keywords
end
end

class Hash
class << Hash
unless method_defined?(:ruby2_keywords_hash?)
def ruby2_keywords_hash?
def ruby2_keywords_hash?(hash)
false
end
end
Expand Down

0 comments on commit 51c47c0

Please sign in to comment.