Class: ROM::Processor
- Inherits:
-
Object
- Object
- ROM::Processor
- 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
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
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 |