Sha256: 5ee2bd39cc780d39714d8d206727f63c710c1fd1499478feb53a0936f5dbeda5
Contents?: true
Size: 821 Bytes
Versions: 28
Compression:
Stored size: 821 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
Version data entries
28 entries across 28 versions & 1 rubygems