Class: Origami::XDP::Package

Inherits:
REXML::Document
  • Object
show all
Defined in:
lib/origami/xfa.rb

Instance Method Summary collapse

Constructor Details

#initialize(package = nil) ⇒ Package

Returns a new instance of Package.



3016
3017
3018
3019
3020
# File 'lib/origami/xfa.rb', line 3016

def initialize(package = nil)
  super(package || REXML::XMLDecl.new.to_s)
  
  add_element Origami::XDP::XDP.new if package.nil?
end