Class: Dragonfly::Encoder

Inherits:
FunctionManager show all
Defined in:
lib/dragonfly/encoder.rb

Instance Attribute Summary

Attributes inherited from FunctionManager

#functions, #objects

Attributes included from Loggable

#log_object

Instance Method Summary collapse

Methods inherited from FunctionManager

#call_last, #get_registered, #initialize, #inspect, #register

Methods included from Configurable

included

Methods included from Loggable

#log, #log=, #use_same_log_as

Constructor Details

This class inherits a constructor from Dragonfly::FunctionManager

Instance Method Details

#add(name = :encode, callable_obj = nil, &block) ⇒ Object


4
5
6
# File 'lib/dragonfly/encoder.rb', line 4

def add(name=:encode, callable_obj=nil, &block)
  super(name, callable_obj, &block)
end

#encode(temp_object, *args) ⇒ Object


8
9
10
# File 'lib/dragonfly/encoder.rb', line 8

def encode(temp_object, *args)
  call_last(:encode, temp_object, *args)
end