Class: ROM::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/rom/processor.rb,
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)


24
25
26
# File 'lib/rom/processor.rb', line 24

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



13
14
15
# File 'lib/rom/processor.rb', line 13

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