Sha256: acdc2c918562f1a8c1bd85c49337e59b10e37103b9e48252b641cf5be8dc000f
Contents?: true
Size: 551 Bytes
Versions: 320
Compression:
Stored size: 551 Bytes
Contents
var metadata = require('./_metadata') , anObject = require('./_an-object') , aFunction = require('./_a-function') , toMetaKey = metadata.key , 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
320 entries across 8 versions & 3 rubygems