Class: PHP::Formator
- Inherits:
-
Object
- Object
- PHP::Formator
- Defined in:
- lib/php/formator.rb
Class Method Summary collapse
Class Method Details
.serialize(obj) ⇒ Object
41 42 43 |
# File 'lib/php/formator.rb', line 41 def serialize(obj) _serialize(obj, Array.new(1, nil)) end |
.unserialize(str) ⇒ Object
45 46 47 |
# File 'lib/php/formator.rb', line 45 def unserialize(str) _unserialize(StringIO.new(str), Array.new) end |