Class: RevealCK::Templates::Processor
- Inherits:
-
Object
- Object
- RevealCK::Templates::Processor
- Includes:
- Retrieve
- Defined in:
- lib/reveal-ck/templates/processor.rb
Overview
Public: A Processor is given a template and expected to render it.
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Processor
constructor
A new instance of Processor.
- #output(locals = {}) ⇒ Object
Methods included from Retrieve
Constructor Details
#initialize(args) ⇒ Processor
Returns a new instance of Processor.
17 18 19 20 21 |
# File 'lib/reveal-ck/templates/processor.rb', line 17 def initialize(args) @config = retrieve(:config, args) file = retrieve(:file, args) @template = Tilt.new file end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
15 16 17 |
# File 'lib/reveal-ck/templates/processor.rb', line 15 def config @config end |