Class: Textplacer::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/textplacer/processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, context) ⇒ Processor

Returns a new instance of Processor.



5
6
7
8
# File 'lib/textplacer/processor.rb', line 5

def initialize(source, context)
  @source = source
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/textplacer/processor.rb', line 3

def context
  @context
end

#sourceObject (readonly)

Returns the value of attribute source.



3
4
5
# File 'lib/textplacer/processor.rb', line 3

def source
  @source
end

Instance Method Details

#performObject



10
11
12
13
14
# File 'lib/textplacer/processor.rb', line 10

def perform
  process_lists
  process_items
  source
end