From aa678302d6b0c5b64b60e7a8b26b4fbb92f1c19a Mon Sep 17 00:00:00 2001 From: thedarkone Date: Fri, 28 Jan 2011 23:03:10 +0100 Subject: [PATCH] Fix comments. --- lib/liquid/context.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/liquid/context.rb b/lib/liquid/context.rb index 6cca478..3b01e3d 100644 --- a/lib/liquid/context.rb +++ b/lib/liquid/context.rb @@ -129,17 +129,17 @@ module Liquid false when 'blank' :blank? - when 'empty' # Single quoted strings + when 'empty' :empty? - when /^'(.*)'$/ # Double quoted strings + when /^'(.*)'$/ # Single quoted strings $1.to_s - when /^"(.*)"$/ # Integer and floats + when /^"(.*)"$/ # Double quoted strings $1.to_s - when /^(\d+)$/ # Ranges + when /^(\d+)$/ # Integer and floats $1.to_i - when /^\((\S+)\.\.(\S+)\)$/ # Floats + when /^\((\S+)\.\.(\S+)\)$/ # Ranges (resolve($1).to_i..resolve($2).to_i) - when /^(\d[\d\.]+)$/ + when /^(\d[\d\.]+)$/ # Floats $1.to_f else variable(key)