Sha256: b1704822d8581103401fb82d771b4d81775796e9554b0f759140f1371087a942

Contents?: true

Size: 780 Bytes

Versions: 9

Compression:

Stored size: 780 Bytes

Contents

# frozen_string_literal: true

require 'time'
require 'date'

class String # :nodoc:
  def to_liquid
    self
  end
end

class Symbol # :nodoc:
  def to_liquid
    to_s
  end
end

class Array # :nodoc:
  def to_liquid
    self
  end
end

class Hash # :nodoc:
  def to_liquid
    self
  end
end

class Numeric # :nodoc:
  def to_liquid
    self
  end
end

class Range # :nodoc:
  def to_liquid
    self
  end
end

class Time # :nodoc:
  def to_liquid
    self
  end
end

class DateTime < Date # :nodoc:
  def to_liquid
    self
  end
end

class Date # :nodoc:
  def to_liquid
    self
  end
end

class TrueClass
  def to_liquid # :nodoc:
    self
  end
end

class FalseClass
  def to_liquid # :nodoc:
    self
  end
end

class NilClass
  def to_liquid # :nodoc:
    self
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
liquid-5.6.0.rc1 lib/liquid/extensions.rb
liquid-5.5.1 lib/liquid/extensions.rb
liquid-5.5.0 lib/liquid/extensions.rb
liquid-5.4.0 lib/liquid/extensions.rb
liquid-5.3.0 lib/liquid/extensions.rb
liquid-5.2.0 lib/liquid/extensions.rb
liquid-5.1.0 lib/liquid/extensions.rb
liquid-5.0.1 lib/liquid/extensions.rb
liquid-5.0.0 lib/liquid/extensions.rb