Method: Browser::FormData#<<
- Defined in:
- opal/browser/form_data.rb
#<<(tuple) ⇒ Object
Append a tuple to this FormData instance
a tuple of a key, value and possibly a filename
165 166 167 168 169 170 171 172 173 |
# File 'opal/browser/form_data.rb', line 165 def <<(tuple) key, value, filename = tuple unless filename `#@native.append(#{key}, #{Native.convert(value)})` else `#@native.append(#{key}, #{Native.convert(value)}, #{filename})` end end |