Sha256: 8f5aa9776e6ff7a86753ea0b52bede05f62a0e88d81a1a503f6ac30c5748d481
Contents?: true
Size: 252 Bytes
Versions: 12
Compression:
Stored size: 252 Bytes
Contents
class Struct # Returns a hash containing the names and values # for all instance settings in the Struct. # # This will eventually be deprecated in favor of #to_h. def attributes h = {} each_pair { |k,v| h[k] = v } h end end
Version data entries
12 entries across 11 versions & 2 rubygems