Sha256: 51964208de26acc70c564ba04da80479081c3d2107b2c6b8faa92d44ed47bd53
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
require "oga" require "traktor/nml/collection" require "traktor/nml/playlist" module Traktor module NML class File attr_reader :collection, :playlist def initialize(content) doc = Oga.parse_xml content @collection = Traktor::NML::Collection.new doc.xpath('NML/COLLECTION/ENTRY') @playlist = Traktor::NML::Playlist.new doc.xpath('NML/PLAYLISTS'), @collection end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
traktor-nml-0.3.1 | lib/traktor/nml/file.rb |
traktor-nml-0.3.0 | lib/traktor/nml/file.rb |