Class: Cult::Template
- Inherits:
-
Object
- Object
- Cult::Template
- Defined in:
- lib/cult/template.rb
Defined Under Namespace
Classes: Context
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(project:, pwd: nil, **kw) ⇒ Template
constructor
A new instance of Template.
- #process(text, filename: nil) ⇒ Object
Constructor Details
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
37 38 39 |
# File 'lib/cult/template.rb', line 37 def context @context end |
Instance Method Details
#process(text, filename: nil) ⇒ Object
44 45 46 |
# File 'lib/cult/template.rb', line 44 def process(text, filename: nil) context.send(:_process, text, filename: filename) end |