Sha256: 7c8899e2e88dc45021503e330504419455a7afbd1e47b5017f2ea8a50fe8fa75
Contents?: true
Size: 705 Bytes
Versions: 4
Compression:
Stored size: 705 Bytes
Contents
module Padrino module Cache ## # Defines a padrino parser for our cache store. # module Parser ## # With Parser::Plain we will store # text and object in a text format. # module Plain def self.decode(code) code.to_s end def self.encode(code) code.to_s end end ## # With Parser::Marshal we will store # text and object in a marshalled format. # module Marshal def self.decode(code) ::Marshal.load(code.to_s) end def self.encode(code) ::Marshal.dump(code) end end end # Parser end # Cache end # Padrino
Version data entries
4 entries across 4 versions & 1 rubygems