Sha256: 353958f7fb711aa2e46ef10fc03f67fb64d0ca6ae3be90598eb360166b19b5d4
Contents?: true
Size: 498 Bytes
Versions: 64
Compression:
Stored size: 498 Bytes
Contents
var $metadata = require('./_metadata'); var anObject = require('./_an-object'); var aFunction = require('./_a-function'); var toMetaKey = $metadata.key; var ordinaryDefineOwnMetadata = $metadata.set; $metadata.exp({ metadata: function metadata(metadataKey, metadataValue) { return function decorator(target, targetKey) { ordinaryDefineOwnMetadata( metadataKey, metadataValue, (targetKey !== undefined ? anObject : aFunction)(target), toMetaKey(targetKey) ); }; } });
Version data entries
64 entries across 29 versions & 8 rubygems