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

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

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
15
# File 'card/tmpsets/set/mod002-core/all/initialize.rb', line 11

def new args={}, _options={}
  with_normalized_new_args args do |normalized_args|
    super normalized_args
  end
end

#with_normalized_new_args(args = {}) {|args| ... } ⇒ Object

Yields:

  • (args)


17
18
19
20
21
22
23
# File 'card/tmpsets/set/mod002-core/all/initialize.rb', line 17

def with_normalized_new_args args={}
  args = (args || {}).stringify_keys
  delete_junk_args args
  normalize_type_args args
  normalize_content_args args
  yield args
end