Class: Liquid::Assign
Constant Summary collapse
- Syntax =
/(\w+)\s*=\s*(#{AllowedVariableCharacters}+)/
Instance Attribute Summary
Attributes inherited from Tag
Instance Method Summary collapse
-
#initialize(markup, tokens) ⇒ Assign
constructor
A new instance of Assign.
- #render(context) ⇒ Object
Methods inherited from Tag
Constructor Details
Instance Method Details
#render(context) ⇒ Object
15 16 17 18 |
# File 'lib/liquid/standardtags.rb', line 15 def render(context) context[@to] = context[@from] '' end |