Class: Jekyll::Minibundle::VariableTemplate
- Inherits:
-
Object
- Object
- Jekyll::Minibundle::VariableTemplate
- Defined in:
- lib/jekyll/minibundle/variable_template.rb
Defined Under Namespace
Modules: Generator, Parser Classes: SyntaxError, Token
Constant Summary collapse
- OPEN_TAG =
'{{'- CLOSE_TAG =
'}}'- ESCAPE_CHAR =
'\\'
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(interpolation) ⇒ VariableTemplate
constructor
A new instance of VariableTemplate.
Constructor Details
#initialize(interpolation) ⇒ VariableTemplate
Returns a new instance of VariableTemplate.
11 12 13 14 15 |
# File 'lib/jekyll/minibundle/variable_template.rb', line 11 def initialize(interpolation) # rubocop:disable Style/DocumentDynamicEvalDefinition instance_eval("def render(variables) #{interpolation} end", __FILE__, __LINE__) # rubocop:enable Style/DocumentDynamicEvalDefinition end |