Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/compress.rb
Instance Method Summary collapse
-
#compress ⇒ Object
Dump an object via YAML and compress it.
Instance Method Details
#compress ⇒ Object
Dump an object via YAML and compress it
4 5 6 |
# File 'lib/compress.rb', line 4 def compress Zlib::Deflate.deflate(YAML::dump(self)) end |