Method: FormReader::FormElements#get_options

Defined in:
lib/web/formreader.rb

#get_optionsObject



191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/web/formreader.rb', line 191

def get_options
  all_options = { }
  @fields.each{ |k,v|
    v.each { |field|
      if (field.kind_of? Select)
        all_options[k] = field.options.collect{ |o|
          o.value
        }
      end
    }
  }
  all_options
end