0
0
Fork 0

Remove unused #hash_to_object method in SettingsHelper (#25213)

This commit is contained in:
Matt Jankowski 2023-06-01 03:47:05 -04:00 committed by GitHub
parent e7e1b46ce8
commit f84037ae2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 23 deletions

View file

@ -1,10 +0,0 @@
# frozen_string_literal: true
class HashObject
def initialize(hash)
hash.each do |k, v|
instance_variable_set("@#{k}", v)
self.class.send(:define_method, k, proc { instance_variable_get("@#{k}") })
end
end
end