Class: ROM::Processor
- Inherits:
-
Object
- Object
- ROM::Processor
- 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
Defined Under Namespace
Classes: Transproc
Class Method Summary collapse
-
.build ⇒ Processor
abstract
private
Required interface to be implemented by descendants.
-
.inherited(processor) ⇒ Object
private
Hook used to auto-register a processor class.
Class Method Details
.build ⇒ Processor
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
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 |