Class: Llama::AbstractProcessor
- Inherits:
-
Object
- Object
- Llama::AbstractProcessor
- Defined in:
- lib/llama/processors/abstract_processor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(source, target, project_name) ⇒ AbstractProcessor
constructor
A new instance of AbstractProcessor.
- #process! ⇒ Object
Constructor Details
#initialize(source, target, project_name) ⇒ AbstractProcessor
Returns a new instance of AbstractProcessor.
4 5 6 7 8 |
# File 'lib/llama/processors/abstract_processor.rb', line 4 def initialize(source, target, project_name) @source = source @target = target @project_name = project_name end |
Instance Attribute Details
#project_name ⇒ Object
Returns the value of attribute project_name.
2 3 4 |
# File 'lib/llama/processors/abstract_processor.rb', line 2 def project_name @project_name end |
#source ⇒ Object
Returns the value of attribute source.
2 3 4 |
# File 'lib/llama/processors/abstract_processor.rb', line 2 def source @source end |
#target ⇒ Object
Returns the value of attribute target.
2 3 4 |
# File 'lib/llama/processors/abstract_processor.rb', line 2 def target @target end |
Instance Method Details
#process! ⇒ Object
10 11 12 |
# File 'lib/llama/processors/abstract_processor.rb', line 10 def process! raise NonImplementedError, 'subclasses must implement #process !' end |