Class: Textplacer::Processor
- Inherits:
-
Object
- Object
- Textplacer::Processor
- Defined in:
- lib/textplacer/processor.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, context) ⇒ Processor
constructor
A new instance of Processor.
- #perform ⇒ Object
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/textplacer/processor.rb', line 3 def context @context end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
3 4 5 |
# File 'lib/textplacer/processor.rb', line 3 def source @source end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 |
# File 'lib/textplacer/processor.rb', line 10 def perform process_lists process_items source end |