Class: Chop::Form::MultipleFile
- Inherits:
-
Field
- Object
- Struct
- Field
- Chop::Form::MultipleFile
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
for
Instance Method Details
#fill_in! ⇒ Object
150
151
152
|
# File 'lib/chop/form.rb', line 150
def fill_in!
field.set file_paths
end
|
#matches? ⇒ Boolean
146
147
148
|
# File 'lib/chop/form.rb', line 146
def matches?
field[:type] == "file" && field[:multiple]
end
|