Class: TorqueBox::Configuration::ThingWithOptionsEntry

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, #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) finalize_options



153
154
155
156
157
158
159
160
# File 'configure/lib/torquebox/configuration.rb', line 153

def finalize_options
  if @options[:discrete]
    local_config << [@thing.to_s, @entry_options]
  else
    local_config[@thing.to_s] = { } unless local_config[@thing.to_s]
    @entry_options = local_config[@thing.to_s].merge!( @entry_options )
  end
end

- (Object) process_args(args)



148
149
150
151
# File 'configure/lib/torquebox/configuration.rb', line 148

def process_args(args)
  @thing, hash = args
  add_options( hash || {} )
end