Sha256: 50a593aad34644e5d7ff1e3a0eb7b0601f379b5a6cbdd2c609b4e3f4d4ea4172
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
require "nokogiri" module Jdt class Manifest attr_accessor :file, :doc def initialize(path) @file = path @doc = Nokogiri::XML(File.read(file)) end def to_xml xsl = Nokogiri::XSLT(File.read("#{File.dirname(File.expand_path(__FILE__))}/xslts/pretty_print.xsl")) xsl.transform(@doc).to_s end def folder File.dirname(file) end def exists? File.exists?(file) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jdt-0.0.3 | lib/jdt/manifest/manifest.rb |
jdt-0.0.2 | lib/jdt/manifest/manifest.rb |