Method: Cloudist::Encoding#decode
- Defined in:
- lib/cloudist/encoding.rb
#decode(message) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/cloudist/encoding.rb', line 9 def decode() raise ArgumentError, "First argument can't be nil" if .nil? return unless .is_a?(String) # Marshal.load(message) JSON.load() end |