Class: TorqueBox::Configuration::OptionsEntry Private
- Defined in:
- lib/torquebox/configuration.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #process_args(args) ⇒ Object private
Methods inherited from Entry
#add_options, const_missing, #eval_block, #finalize_options, #find_line_number, #initialize, #local_config, #local_config=, #method_missing, #process, #validate_options, with_settings
Constructor Details
This class inherits a constructor from TorqueBox::Configuration::Entry
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TorqueBox::Configuration::Entry
Instance Method Details
#process_args(args) ⇒ 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.
139 140 141 142 143 |
# File 'lib/torquebox/configuration.rb', line 139 def process_args(args) hash = args.first || { } raise ConfigurationError.new( "'#{@name}' takes a hash (and only a hash)", @line_number ) if !hash.is_a?(Hash) || args.length > 1 ( hash ) end |