Class: Chop::Form::MultipleCheckbox
- Inherits:
-
Field
- Object
- Struct
- Field
- Chop::Form::MultipleCheckbox
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
65
66
67
68
69
|
# File 'lib/chop/form.rb', line 65
def fill_in!
checkboxes.each do |checkbox|
checkbox.set checkbox_label_in_values?(checkbox)
end
end
|
#matches? ⇒ Boolean
61
62
63
|
# File 'lib/chop/form.rb', line 61
def matches?
field[:type] == "checkbox" && field[:name].to_s.end_with?("[]")
end
|