Class: Dragonfly::Encoder
- Inherits:
-
FunctionManager
- Object
- FunctionManager
- Dragonfly::Encoder
- Defined in:
- lib/dragonfly/encoder.rb
Instance Attribute Summary
Attributes inherited from FunctionManager
Instance Method Summary collapse
Methods inherited from FunctionManager
#call_last, #get_registered, #initialize, #inspect, #register
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 |