Sha256: e40e07d9aaf0413a5f67ada502205fb5280d9f3fc5075ffa444e9ea8187b52bc

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

# -*- encoding : utf-8 -*-
module Exchange
  module Cachify
    
    def cachify
      Marshal.dump self
    end
    
  end
  
  module Decachify
    
    def decachify
      Marshal.load self
    end
    
  end
end

Numeric.send  :include, Exchange::Cachify
String.send   :include, Exchange::Cachify
Symbol.send   :include, Exchange::Cachify
String.send   :include, Exchange::Decachify
Hash.send     :include, Exchange::Cachify
Array.send    :include, Exchange::Cachify
NilClass.send :include, Exchange::Cachify

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exchange-1.0.4 lib/exchange/core_extensions/cachify.rb
exchange-1.0.2 lib/exchange/core_extensions/cachify.rb
exchange-1.0.0 lib/exchange/core_extensions/cachify.rb