Class: Chop::Form::MultipleFile

Inherits:
Field
  • Object
show all
Defined in:
lib/chop/form.rb

Instance Attribute Summary

Attributes inherited from Field

#field, #label, #path, #session, #value

Instance Method Summary collapse

Methods inherited from Field

candidates, for, from, #get_value

Instance Method Details

#fill_in!Object



212
213
214
# File 'lib/chop/form.rb', line 212

def fill_in!
  field.set file_paths
end

#matches?Boolean

Returns:

  • (Boolean)


208
209
210
# File 'lib/chop/form.rb', line 208

def matches?
  field[:type] == "file" && field[:multiple]
end