Sha256: 196d5bf300495d64ecf794174b2bce10317d3211ca646a83363d6e9121ecbaa7
Contents?: true
Size: 290 Bytes
Versions: 27
Compression:
Stored size: 290 Bytes
Contents
module ISO3166 class KwargStruct < Struct # Override the initialize to handle hashes of named parameters def initialize(*args) opts = args.last.is_a?(Hash) ? args.pop : {} super(*args) opts.each_pair do |k, v| send "#{k}=", v end end end end
Version data entries
27 entries across 27 versions & 1 rubygems