Class: ASIR::Coder::Null

Inherits:
ASIR::Coder show all
Defined in:
lib/asir/coder/null.rb

Overview

!SLIDE Null Coder Always encode/decode as nil.

Instance Attribute Summary

Attributes included from Log

#_logger

Instance Method Summary collapse

Methods inherited from ASIR::Coder

#_subclass_responsibility, #decode, #encode, #prepare

Methods included from Log

#_log, #_log_enabled=, #_log_enabled?, #_log_format, #_log_result, enabled, enabled=, included

Methods included from Initialization

#initialize

Instance Method Details

#_decode(obj) ⇒ Object



13
14
15
# File 'lib/asir/coder/null.rb', line 13

def _decode obj
  nil
end

#_encode(obj) ⇒ Object



9
10
11
# File 'lib/asir/coder/null.rb', line 9

def _encode obj
  nil
end