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, combined_css_selector, css_selector, #diff_value, for, from, #get_value, #label_text, #should_include_in_diff?, #to_diff_row

Instance Method Details

#fill_in!Object



307
308
309
# File 'lib/chop/form.rb', line 307

def fill_in!
  field.set file_paths
end

#matches?Boolean

Returns:

  • (Boolean)


303
304
305
# File 'lib/chop/form.rb', line 303

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