Class: Mongory::Converters::AbstractConverter::Registry

Inherits:
Struct
  • Object
show all
Defined in:
lib/mongory/converters/abstract_converter.rb

Overview

A registry entry storing a conversion rule.

Instance Attribute Summary collapse

Instance Attribute Details

#execProc

Returns the block used to convert the object.

Returns:

  • (Proc)

    the block used to convert the object



26
# File 'lib/mongory/converters/abstract_converter.rb', line 26

Registry = Struct.new(:klass, :exec)

#klassClass

Returns the class this rule applies to.

Returns:

  • (Class)

    the class this rule applies to



26
# File 'lib/mongory/converters/abstract_converter.rb', line 26

Registry = Struct.new(:klass, :exec)