Method: Puppet::Interface::OptionManager#get_option
- Defined in:
- lib/puppet/interface/option_manager.rb
#get_option(name, with_inherited_options = true) ⇒ 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.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/puppet/interface/option_manager.rb', line 87 def get_option(name, = true) ||= {} result = [name.to_sym] if result.nil? and then if self.is_a?(Class) and superclass.respond_to?(:get_option) result = superclass.get_option(name) elsif self.class.respond_to?(:get_option) result = self.class.get_option(name) end end return result end |