Sha256: e9c26c83c193704a109272e365436fd85760b95e949515a79bc740ebf2f48d62

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'nokogiri'
require 'bluecloth'

module Genit

  # Open an xml file.
  class XmlDocument
  
    # Public: Open an xml document.
    #
    # file - Full path String filename.
    #
    # Returns a Nokogiri::XML document.
    def self.open file
      Nokogiri::XML(File.open(file))
    end
    
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
genit-0.4.1 lib/genit/xml_document.rb
genit-0.4 lib/genit/xml_document.rb
genit-0.3 lib/genit/xml_document.rb
genit-0.2 lib/genit/xml_document.rb