Sha256: 9cf19afd68d2602be56361491edc646ea9e6869263f7cb2195850f8666c6f8b9
Contents?: true
Size: 587 Bytes
Versions: 4
Compression:
Stored size: 587 Bytes
Contents
# Extended m3u format driver for gem 'xspf' module XSPFPatch def self.included(base) base.extend ClassMethods base.class_eval do end base.send :include, InstanceMethods end # self.included module ClassMethods end # ClassMethods module InstanceMethods 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 end # InstanceMethods end class XSPF include XSPFPatch end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xspf2m3u-0.0.5 | lib/xspf2m3u/xspf_patch.rb |
xspf2m3u-0.0.4 | lib/xspf2m3u/xspf_patch.rb |
xspf2m3u-0.0.3 | lib/xspf2m3u/xspf_patch.rb |
xspf2m3u-0.0.2 | lib/xspf2m3u/xspf_patch.rb |