Sha256: bc47245d453ab09548b7cd4e427746bce64f6756a7985b73015746fdd956d437
Contents?: true
Size: 403 Bytes
Versions: 20
Compression:
Stored size: 403 Bytes
Contents
module Ddr::Models::Structures # # Wraps a Nokogiri (XML) 'fileSec' node # class FileSec < SimpleDelegator def id self['ID'] end def filegrps xpath('xmlns:fileGrp').map { |node| FileGrp.new(node) } end def self.build(args) node = Nokogiri::XML::Node.new('fileSec', args[:document]) node['ID'] = args[:id] if args[:id] node end end end
Version data entries
20 entries across 20 versions & 1 rubygems