1
0
Fork 0
forked from OpenNeo/impress

Delete unused deferred_attributes lib

No idea what this was! Goodbye!
This commit is contained in:
Emi Matchu 2023-08-02 14:43:38 -07:00
parent c9a7f0c4d4
commit 7e0971eac6

View file

@ -1,10 +0,0 @@
module DeferredAttributes
def attr_deferred(name, &block)
instance_variable_name = "@#{name}"
define_method name do
value = instance_variable_get(instance_variable_name)
return value if value
instance_variable_set(instance_variable_name, self.instance_eval(&block))
end
end
end