Module: Card::Set::All::Initialize::ClassMethods

Defined in:
tmpsets/set/mod003-core/all/initialize.rb

Instance Method Summary collapse

Instance Method Details

#new(args = {}, _options = {}) ⇒ Object



11
12
13
14
15
16
17
# File 'tmpsets/set/mod003-core/all/initialize.rb', line 11

def new args={}, _options={}
  args = (args || {}).stringify_keys
  JUNK_INIT_ARGS.each { |a| args.delete(a) }
  %w[type type_code].each { |k| args.delete(k) if args[k].blank? }
  args.delete("content") if args["attach"] # should not be handled here!
  super args
end