Class: Chop::Form::Select
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
89 90 91 |
# File 'lib/chop/form.rb', line 89 def fill_in! session.select value, from: label end |
#matches? ⇒ Boolean
85 86 87 |
# File 'lib/chop/form.rb', line 85 def matches? field.tag_name == "select" && !field[:multiple] end |