Class: Liquid::Expression
- Inherits:
-
Object
- Object
- Liquid::Expression
- Defined in:
- lib/locomotive/steam/liquid/patches.rb
Constant Summary collapse
- EXTRA_LITERALS =
{ 'present' => MethodLiteral.new(:present?, '').freeze }.freeze
Class Method Summary collapse
Class Method Details
.parse(markup) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/locomotive/steam/liquid/patches.rb', line 21 def self.parse(markup) if EXTRA_LITERALS.key?(markup) EXTRA_LITERALS[markup] else parse_without_extra_literals(markup) end end |
.parse_without_extra_literals ⇒ Object
14 |
# File 'lib/locomotive/steam/liquid/patches.rb', line 14 alias_method :parse_without_extra_literals, :parse |