Sha256: d0019e93fc988ff3533d142c52e20ae45418b3b38e417f8e257e28192eb67380
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 KB
Contents
# # Copyright (C) 2014 Enrico Rivarola # # This file is part of DcmDict gem (dcm_dict). # # DcmDict is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # DcmDict is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with DcmDict. If not, see <http://www.gnu.org/licenses/>. # # This software has neither been tested nor approved for clinical use # or for incorporation in a medical device. # It is the redistributor's or user's responsibility to comply with any # applicable local, state, national or international regulations. # #require_relative 'constant' require_relative 'rexml_tool' require_relative 'nokogiri_tool' module DcmDict module XML # Main tool to handle xml data for uid and data element module XmlTool class << self private def xml_tool XML.nokogiri_enable? ? NokogiriTool : RexmlTool end def method_missing(*args, &block) m = args.shift xml_tool.send(m, *args, &block) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems