Skip to content
ylyn - transforms Ruby code to XML
Ruby Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
projects
test
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README
TODO
ylyn.rb

README

README

Transforms the output of Ripper.sexp into simple XML via Nokogiri, giving you access to the whole XML toolchain, including CSS selectors, XPath, XSLT, and XQuery.

Ylyn is still in early alpha, as in I just got the first draft sorta working on a limited set of sample code earlier tonight. See TODO.

$ bundle exec pry -r './ylyn.rb'

> puts Ylyn.new('class Foo ; end').css('const_ref').to_xml

<const_ref>
  <_const value="Foo" location="1 6"/>
</const_ref>
Something went wrong with that request. Please try again.