diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zorglub/node.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 6619010..5421046 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -174,12 +174,13 @@ module Zorglub end # def inherited_var sym, *args - d = self.class.inherited_vars[sym].clone || [] + @instance_inherited_vars ||={} + var= @instance_inherited_vars[sym] ||= self.class.inherited_vars[sym].clone || [] unless args.empty? - d.concat args - d.uniq! + var.concat args + var.uniq! end - d + var end # # before_all and after_all hooks |