uber
uber copied to clipboard
Inherit method
Hello there!
I added inherit_method because of this:
require 'uber/inheritable_attr'
class A
extend Uber::InheritableAttr
inheritable_attr :shallow
self.shallow = { common: {} }
end
class B < A
end
class C < A
end
B.shallow[:common][:this] = "Should be in C"
p C.shallow # => {:common=>{:this=>"shouldn't be in C"}}
@apotonick are you there?