Sha256: e1287c01da120cf8782c969cf8ec98b3cbc9c05c6a4cddd0dea0b4df937f8a4e
Contents?: true
Size: 709 Bytes
Versions: 8
Compression:
Stored size: 709 Bytes
Contents
# -*- encoding : utf-8 -*- module Exchange module ExternalAPI # The xml base class takes care of XML apis. It assumes you would want to use nokogiri as a parser and preloads the gem # Also, this may serve as a base for some operations which might be common to the xml apis # @author Beat Richartz # @version 0.6 # @since 0.6 # class XML < Base # Initializer, essentially takes the arguments passed to initialization, loads nokogiri on the way # and passes the arguments to the api base # def initialize *args Exchange::GemLoader.new('nokogiri').try_load unless defined?(Nokogiri) super *args end end end end
Version data entries
8 entries across 8 versions & 1 rubygems