Sha256: 4ee31a3c9a27a99783a4caabe3112fe6afda4efd270187559a8faa7ec0ae4a60

Contents?: true

Size: 668 Bytes

Versions: 2

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

module Sail
  # ConstantCollection
  #
  # This module includes a variety of
  # constants that are used multiple times
  # in the code to avoid unnecessary allocations.
  module ConstantCollection
    TRUE = "true"
    FALSE = "false"
    STRING_BOOLEANS = %w[true false].freeze
    BOOLEAN = "boolean"
    ON = "on"
    BOOLEANS = [true, false].freeze
    CONFIG_FILE_PATH = "./config/sail.yml"
    STALE = "stale"
    RECENT = "recent"
    FIELDS_FOR_SORT = %w[name updated_at cast_type group].freeze
    SETTINGS_PER_PAGE = 8
    MINIMAL_SETTINGS_PER_PAGE = 24
    INPUT_DATE_FORMAT = "%Y-%m-%dT%H:%m:%S"
    MAX_PAGES = 5
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sail-3.4.0 lib/sail/constant_collection.rb
sail-3.3.0 lib/sail/constant_collection.rb