Method: Puppet::Interface::OptionManager#walk_inheritance_tree

Defined in:
lib/puppet/interface/option_manager.rb

#walk_inheritance_tree(start, sym) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
31
32
33
34
35
36
# File 'lib/puppet/interface/option_manager.rb', line 28

def walk_inheritance_tree(start, sym)
  result = (start || [])
  if self.is_a?(Class) and superclass.respond_to?(sym)
    result = superclass.send(sym) + result
  elsif self.class.respond_to?(sym)
    result = self.class.send(sym) + result
  end
  return result
end