Class: ROM::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/rom/processor.rb,
lib/rom/processor/composer.rb,
lib/rom/processor/transformer.rb

Overview

Abstract processor class

Every ROM processor should inherit from this class

Direct Known Subclasses

Transformer

Defined Under Namespace

Modules: Composer Classes: Transformer

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 '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 'lib/rom/processor.rb', line 15

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