Module: Jinx::JSON::Deserializable

Defined in:
lib/jinx/json/deserializable.rb

Overview

This Deserializable mix-in adds a Deserializer to each class which extends this module.

Instance Method Summary collapse

Instance Method Details

#included(other) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/jinx/json/deserializable.rb', line 7

def included(other)
  super
  if Class === other then
    other.extend(Deserializer)
  else
    other.extend(Deserializable)
  end
end