Sha256: d26342a0bc61d008c639c1df3692894fc360b85d2f8dc0a4348cd13a20cd62c0
Contents?: true
Size: 912 Bytes
Versions: 17
Compression:
Stored size: 912 Bytes
Contents
module Riddle class Configuration class XMLSource < Riddle::Configuration::Source def self.settings [ :type, :xmlpipe_command, :xmlpipe_field, :xmlpipe_attr_uint, :xmlpipe_attr_bool, :xmlpipe_attr_timestamp, :xmlpipe_attr_str2ordinal, :xmlpipe_attr_float, :xmlpipe_attr_multi, :xmlpipe_fixup_utf8 ] end attr_accessor *self.settings def initialize(name, type) @name = name @type = type @xmlpipe_field = [] @xmlpipe_attr_uint = [] @xmlpipe_attr_bool = [] @xmlpipe_attr_timestamp = [] @xmlpipe_attr_str2ordinal = [] @xmlpipe_attr_float = [] @xmlpipe_attr_multi = [] end def valid? super && ( !@xmlpipe_command.nil? || !parent.nil? ) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems