Class: Llama::AbstractProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/llama/processors/abstract_processor.rb

Direct Known Subclasses

DirProcessor, FileProcessor

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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

#sourceObject

Returns the value of attribute source.



2
3
4
# File 'lib/llama/processors/abstract_processor.rb', line 2

def source
  @source
end

#targetObject

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

Raises:

  • (NonImplementedError)


10
11
12
# File 'lib/llama/processors/abstract_processor.rb', line 10

def process!
  raise NonImplementedError, 'subclasses must implement #process !'
end