Method: Filigree::Configuration::ClassMethods#add_option

Defined in:
lib/filigree/configuration.rb

#add_option(opt) ⇒ void

This method returns an undefined value.

Add an option to the necessary data structures.

Parameters:

  • opt (Option)

    Option to add



215
216
217
218
219
220
# File 'lib/filigree/configuration.rb', line 215

def add_option(opt)
  attr_accessor opt.long

  @options_long[opt.long]   = opt
  @options_short[opt.short] = opt unless opt.short.nil?
end