没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
oss.trustie.net/open_source_projects | 主页 > 开源项目社区 > ruby-kind-dom |
ruby-kind-dom
|
0 | 0 | 25 |
贡献者 | 讨论 | 代码提交 |
KindDom is an XML DOM XPath finder developed at Scout Labs within Ruby on Rails.
This small behavioral wrapper around libxml-ruby provides graceful transformation of the content inside XML responses.
Three Methods to Access XML Content#content_forAn XPath-based content selector, returning the content of the first selected node. When content is found, the closure (block) is called with the content, enabling usage similar to a visitor pattern. This pattern allows your XML consumer to gracefully skip code for missing content.
#first_of, #collection_ofXPath-based node selection, returning "kind" nodes, with the same closure & default behaviors as #content_for.
NewsOct-10-2008 — After months of development, testing & usage within our Rails app, and now compatibility with the newest version of the underlying libxml-ruby gem, KindDom is stable & ready for production. Version 1.0.0 of the gem is available!
DocsSee the source code or rdoc for more help.
The tests are good examples too.
InstallationInstall the gem to get the kindness:
sudo gem install kind_domGem Dependencieslibxml-ruby (qualified with 1.1.3), http://libxml.rubyforge.org/ active_support, part of Ruby on Rails http://www.rubyonrails.org/ Enhancement Ideasreturn value type-casting from ActiveResource-style type & nil attributes read/write DOM test cases ©2008 Scout Labs Inc. http://scoutlabs.com