module Representable::Debug
Public Instance Methods
_representable_logger()
click to toggle source
# File lib/representable/debug.rb, line 5 def _representable_logger @logger ||= Logger.new(STDOUT) end
create_representation_with(doc, options, format)
click to toggle source
Calls superclass method
# File lib/representable/debug.rb, line 19 def create_representation_with(doc, options, format) representable_log "[Serialize]........." representable_log "[Serialize]" super end
representable_log(message)
click to toggle source
# File lib/representable/debug.rb, line 9 def representable_log(message) _representable_logger.debug { message } end
representable_map(*)
click to toggle source
Calls superclass method
# File lib/representable/debug.rb, line 25 def representable_map(*) super.tap do |arr| arr.collect { |bin| bin.extend(Binding) } end end
update_properties_from(doc, options, format)
click to toggle source
Calls superclass method
# File lib/representable/debug.rb, line 13 def update_properties_from(doc, options, format) representable_log "[Deserialize]........." representable_log "[Deserialize] document #{doc.inspect}" super end