Sha256: b62c3c024d1653b6a8526b1acbae65b1a7d42db52bef726d6c2003f0d0fc87ba
Contents?: true
Size: 849 Bytes
Versions: 11
Compression:
Stored size: 849 Bytes
Contents
require "expressir/version" require "expressir/cli" require "expressir/config" # .......................................................... # https://bugs.ruby-lang.org/issues/19319 # The issue is that this bug is fixed for 3.1 and above, # but not for 3.0 or 2.7, so we need a "safe" function # .......................................................... if RUBY_VERSION < "3.1" class String def safe_downcase each_char.map(&:downcase).join end end else class String def safe_downcase downcase end end end module Expressir class Error < StandardError; end def self.root File.dirname(__dir__) end def self.root_path @root_path ||= Pathname.new(Expressir.root) end end Dir[File.join(__dir__, "expressir", "express", "*.rb")].sort.each do |fea| require fea end require "expressir/liquid"
Version data entries
11 entries across 11 versions & 1 rubygems