Skip to content

jrobertson/xparams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Converting ProjectX parameters to a hash

require 'xparams'

XParams.parse "<params><param var='current_user'>jrobertson</param><param var='page_no'>1</param></params>"
#=&gt; {:current_user=&gt;&quot;jrobertson&quot;, :page_no=&gt;&quot;1&quot;}</pre>

XParams#parse converts an xml parameter list to a hash, as used by ProjectX.

Resources

About

Converts a ProjectX xml parameter list to a hash.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages