Class: XcodeResultBundleProcessor::KeywordStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/xcoderesultbundleprocessor/keyword_struct.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args, **kwargs) ⇒ KeywordStruct

Returns a new instance of KeywordStruct.



4
5
6
7
8
# File 'lib/xcoderesultbundleprocessor/keyword_struct.rb', line 4

def initialize(*args, **kwargs)
  super()
  param_hash = kwargs.any? ? kwargs : Hash[members.zip(args)]
  param_hash.each { |k, v| self[k] = v }
end