uber icon indicating copy to clipboard operation
uber copied to clipboard

Inherit method

Open asiniy opened this issue 9 years ago • 1 comments

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"}}

asiniy avatar Nov 29 '16 06:11 asiniy

@apotonick are you there?

asiniy avatar Dec 01 '16 08:12 asiniy