# File lib/rudy/metadata.rb, line 166
166:     def initialize(rtype, opts={})
167:       @rtype = rtype
168:       @position = position || @@global.position || '01'
169:       
170:       COMMON_FIELDS.each { |n|
171:         ld "SETTING: #{n}: #{@@global.send(n)}" if @@global.verbose > 3
172:         instance_variable_set("@#{n}", @@global.send(n))
173:       }
174:       
175:       opts.each_pair do |n,v|
176:         raise "Unknown attribute for #{self.class}: #{n}" if !self.has_field? n
177:         next if v.nil?
178:         ld "RESETTING: #{n}: #{v}" if @@global.verbose > 3
179:         self.send("#{n}=", v)
180:       end
181:       
182:     end