Class: TorqueBox::Configuration::OptionsEntry

Inherits:
Entry
  • Object
show all
Defined in:
configure/lib/torquebox/configuration.rb

Instance Method Summary (collapse)

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

- (Object) process_args(args)

Raises:



139
140
141
142
143
# File 'configure/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
  add_options( hash )
end