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

Defined in:
tmpsets/set/mod001-01_core/all/initialize.rb

Instance Method Summary collapse

Instance Method Details

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



6
7
8
9
10
11
12
# File 'tmpsets/set/mod001-01_core/all/initialize.rb', line 6

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