Sha256: 0c50b85a5fe5b4fec81aa5c6210642eb659b07f6d903034ea7ef6cf6ac457d6a

Contents?: true

Size: 749 Bytes

Versions: 7

Compression:

Stored size: 749 Bytes

Contents

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

7 entries across 7 versions & 3 rubygems

Version Path
liquid-4.0.4 lib/liquid/extensions.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/liquid-4.0.3/lib/liquid/extensions.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/liquid-4.0.3/lib/liquid/extensions.rb
liquid-4.0.3 lib/liquid/extensions.rb
liquid-4.0.2 lib/liquid/extensions.rb
liquid-4-0-2-4.0.2 lib/liquid/extensions.rb
liquid-4.0.1 lib/liquid/extensions.rb