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

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



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

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

- (Object) encode(temp_object, *args)



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

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