Module: Representable::Debug

Defined in:
lib/representable/debug.rb

Defined Under Namespace

Modules: Binding

Instance Method Summary collapse

Instance Method Details

#create_representation_with(doc, options, format) ⇒ Object



10
11
12
13
14
15
# File 'lib/representable/debug.rb', line 10

def create_representation_with(doc, options, format)
  puts
  puts "[Serialize]........."
  puts "[Serialize]"
  super
end

#representable_mapObject



17
18
19
20
21
# File 'lib/representable/debug.rb', line 17

def representable_map(*)
  super.tap do |arr|
    arr.collect { |bin| bin.extend(Binding) }
  end
end

#update_properties_from(doc, options, format) ⇒ Object



3
4
5
6
7
8
# File 'lib/representable/debug.rb', line 3

def update_properties_from(doc, options, format)
  puts
  puts "[Deserialize]........."
  puts "[Deserialize] document #{doc.inspect}"
  super
end