Class: ROM::Processor

Inherits:
Object
  • Object
show all
Defined in:
core/lib/rom/processor.rb,
core/lib/rom/processor/transproc.rb

Overview

Abstract processor class

Every ROM processor should inherit from this class

Direct Known Subclasses

Transproc

Defined Under Namespace

Classes: Transproc

Class Method Summary collapse

Class Method Details

.buildProcessor

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method is abstract.

Required interface to be implemented by descendants

Returns:

Raises:

  • (NotImplementedError)


26
27
28
# File 'core/lib/rom/processor.rb', line 26

def self.build
  raise NotImplementedError, '+build+ must be implemented'
end

.inherited(processor) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Hook used to auto-register a processor class



15
16
17
# File 'core/lib/rom/processor.rb', line 15

def self.inherited(processor)
  Mapper.register_processor(processor)
end