lib/riddle/configuration/xml_source.rb in riddle-1.3.3 vs lib/riddle/configuration/xml_source.rb in riddle-1.4.0

- old
+ new

@@ -1,12 +1,16 @@ module Riddle class Configuration class XMLSource < Riddle::Configuration::Source - 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] + 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 @@ -24,6 +28,6 @@ def valid? super && ( !@xmlpipe_command.nil? || !parent.nil? ) end end end -end \ No newline at end of file +end