Sha256: f378650749046b029d50596b772adb10fbb09f2a5478f438a3a1374d791317cd
Contents?: true
Size: 341 Bytes
Versions: 7
Compression:
Stored size: 341 Bytes
Contents
module Temporaries module Core protected def push_temporary(key, value) temporaries[key].push(value) end def pop_temporary(key) temporaries[key].pop end def top_temporary(key) temporaries[key].last end def temporaries @temporaries ||= Hash.new{|h,k| h[k] = []} end end end
Version data entries
7 entries across 7 versions & 1 rubygems