Module: Card::Set::All::Initialize::ClassMethods
- Defined in:
- tmpsets/set/mod001-core/all/initialize.rb
Instance Method Summary collapse
Instance Method Details
#new(args = {}, _options = {}) ⇒ Object
7 8 9 10 11 12 13 |
# File 'tmpsets/set/mod001-core/all/initialize.rb', line 7 def new args={}, ={} 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 |