Module: XSPFPatch::InstanceMethods
- Defined in:
- lib/xspf2m3u/xspf_patch.rb
Overview
ClassMethods
Instance Method Summary collapse
Instance Method Details
#to_xm3u ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/xspf2m3u/xspf_patch.rb', line 18 def to_xm3u xslt_path = File.join(File.dirname(__FILE__), "xsl", "xspf2m3u.xsl") xslt = XML::XSLT.new xslt.xml = self.to_xml xslt.xsl = REXML::Document.new(File.new(xslt_path)) xslt.serve end |