Class: Chop::Form::ViaJavascript
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
233 234 235 |
# File 'lib/chop/form.rb', line 233 def fill_in! session.execute_script("document.getElementById('#{field[:id]}').value = '#{value}'") end |
#matches? ⇒ Boolean
229 230 231 |
# File 'lib/chop/form.rb', line 229 def matches? %w[time week month range].include?(field[:type]) end |