Class: Solid::LiquidExtensions::Variable
- Inherits:
-
Liquid::Variable
- Object
- Liquid::Variable
- Solid::LiquidExtensions::Variable
- Extended by:
- ClassHighjacker
- Defined in:
- lib/solid/liquid_extensions/variable.rb
Instance Method Summary collapse
-
#initialize(markup) ⇒ Variable
constructor
A new instance of Variable.
- #render(context) ⇒ Object
Methods included from ClassHighjacker
demodulized_name, load!, unload!
Constructor Details
Instance Method Details
#render(context) ⇒ Object
11 12 13 14 15 |
# File 'lib/solid/liquid_extensions/variable.rb', line 11 def render(context) return '' if @name.nil? value = @expression.evaluate(context) apply_filters_on(value, context) end |