Class: ConfigTable::SelectItem

Inherits:
Item show all
Defined in:
lib/gems/xmpp4r-0.4/setup.rb

Instance Attribute Summary

Attributes inherited from Item

#default, #description, #name

Instance Method Summary collapse

Methods inherited from Item

#help_opt, #resolve, #set, #value, #value?

Constructor Details

#initialize(name, selection, default, desc) ⇒ SelectItem

Returns a new instance of SelectItem.



403
404
405
406
# File 'lib/gems/xmpp4r-0.4/setup.rb', line 403

def initialize(name, selection, default, desc)
  super
  @ok = selection.split('/')
end

Instance Method Details

#config_typeObject



408
409
410
# File 'lib/gems/xmpp4r-0.4/setup.rb', line 408

def config_type
  'select'
end