Class: Origami::XDP::Package

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

Instance Method Summary collapse

Constructor Details

#initialize(package = nil) ⇒ Package

Returns a new instance of Package.



51
52
53
54
55
# File 'lib/origami/xfa/package.rb', line 51

def initialize(package = nil)
    super(package || REXML::XMLDecl.new.to_s)

    add_element Origami::XDP::XDP.new if package.nil?
end