Method: String#to_form_from_show
- Defined in:
- lib/wwmd/class_extensions/extensions_base.rb
#to_form_from_show ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/wwmd/class_extensions/extensions_base.rb', line 144 def to_form_from_show self.split("\n").map { |a| key,val = a.split("=",2) key = key.split(" ")[-1] val = val.strip if val ["#{key}=#{val}"] }.join("&").to_form.squeeze_keys! end |